Skip to content

Commit 5c86337

Browse files
Add explanatory message before admin password prompt in uninstall script (apple#1118)
- Added message: "This script requires an administrator password to remove the application files from system directories." - Fixes apple#1111
1 parent 7da25e1 commit 5c86337

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎scripts/uninstall-container.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ if [ -n "$CONTAINER_RUNNING" ]; then
6060
exit 1
6161
fi
6262

63+
if [ "$EUID" -ne 0 ]; then
64+
echo "This script requires an administrator password to remove the application files from system directories."
65+
fi
66+
6367
FILES=$(pkgutil --only-files --files com.apple.container-installer)
6468
for i in ${FILES[@]}; do
6569
# this command can fail for some of the reported files from pkgutil such as

0 commit comments

Comments
 (0)