mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 11:33:13 +00:00
f06fc7bb75
Resolve #576 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
20 lines
329 B
Bash
Executable file
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"
|