mirror of
https://github.com/apple/container.git
synced 2026-09-28 01:46:25 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user