mas/script/uninstall
2021-05-07 11:33:39 -07:00

20 lines
326 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 "$PREFIX/bin/mas"