From f8e64e1c01ecace46841c0c757753e2c5a32d291 Mon Sep 17 00:00:00 2001 From: William Laverty Date: Mon, 2 Feb 2026 11:35:29 -0800 Subject: [PATCH] Add explanatory message before admin password prompt Only show the message if not running as root (EUID check). --- scripts/uninstall-container.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/uninstall-container.sh b/scripts/uninstall-container.sh index aaa55004..5ac7b1ee 100755 --- a/scripts/uninstall-container.sh +++ b/scripts/uninstall-container.sh @@ -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