diff options
Diffstat (limited to 'mime-archpkg.sh')
-rw-r--r-- | mime-archpkg.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mime-archpkg.sh b/mime-archpkg.sh index cfd035133e2f..6ea58b3be14a 100644 --- a/mime-archpkg.sh +++ b/mime-archpkg.sh @@ -153,7 +153,7 @@ case "$1" in -d) MODE=remove ;; esac -if [[ $MODE != "usage" && $USER != "root" ]]; then +if [[ $MODE != "usage" && $(whoami) != "root" ]]; then echo "root privileges needed!" exit 1 fi |