Add explanatory message before admin password prompt in uninstall script (#1118)

- Added message: "This script requires an administrator password to
remove the application files from system directories."
- Fixes #1111
This commit is contained in:
William Laverty
2026-02-02 13:57:59 -08:00
committed by GitHub
parent 7da25e142e
commit 5c8633703e
+4
View File
@@ -60,6 +60,10 @@ if [ -n "$CONTAINER_RUNNING" ]; then
exit 1
fi
if [ "$EUID" -ne 0 ]; then
echo "This script requires an administrator password to remove the application files from system directories."
fi
FILES=$(pkgutil --only-files --files com.apple.container-installer)
for i in ${FILES[@]}; do
# this command can fail for some of the reported files from pkgutil such as