mirror of
https://github.com/mas-cli/mas
synced 2024-11-28 14:30:29 +00:00
21 lines
387 B
Bash
Executable file
21 lines
387 B
Bash
Executable file
#!/bin/bash -e
|
|
#
|
|
# script/uninstall
|
|
# mas
|
|
#
|
|
# Removes mas and MasKit 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/Frameworks/MasKit.framework"
|
|
trash "$PREFIX/bin/mas"
|