mas/script/uninstall
Ross Goldberg f06fc7bb75
Use trash -F instead of trash to facilitate better undelete.
Resolve #576

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-15 08:13:54 -04:00

20 lines
329 B
Bash
Executable file

#!/bin/bash -e
#
# script/uninstall
# mas
#
# Removes mas from PREFIX.
#
# Override default prefix path with optional 1st arg
if test -n "$1"; then
PREFIX="$1"
elif [[ $(uname -m) == 'arm64' ]]; then
PREFIX=/opt/homebrew
else
PREFIX=/usr/local
fi
echo "==> 🔥 Uninstalling mas from $PREFIX"
trash -F "$PREFIX/bin/mas"