2018-10-17 21:47:08 +00:00
|
|
|
#!/bin/bash -e
|
2019-01-19 04:37:51 +00:00
|
|
|
#
|
|
|
|
# script/uninstall
|
|
|
|
# mas
|
|
|
|
#
|
2021-05-07 18:33:39 +00:00
|
|
|
# Removes mas from PREFIX.
|
2019-01-19 04:37:51 +00:00
|
|
|
#
|
2018-10-17 21:47:08 +00:00
|
|
|
|
2019-01-19 04:37:51 +00:00
|
|
|
# Override default prefix path with optional 1st arg
|
|
|
|
if test -n "$1"; then
|
2021-03-21 23:50:09 +00:00
|
|
|
PREFIX="$1"
|
2021-01-28 21:10:48 +00:00
|
|
|
else
|
2023-11-25 23:59:53 +00:00
|
|
|
PREFIX=$(brew --prefix)
|
2019-01-19 04:37:51 +00:00
|
|
|
fi
|
2018-10-17 21:47:08 +00:00
|
|
|
|
2019-01-19 04:37:51 +00:00
|
|
|
echo "==> 🔥 Uninstalling mas from $PREFIX"
|
|
|
|
|
2023-11-25 23:40:47 +00:00
|
|
|
trash "$PREFIX/bin/mas" || true
|