diff options
author | grimi | 2018-04-14 14:10:53 +0200 |
---|---|---|
committer | grimi | 2018-04-14 14:10:53 +0200 |
commit | 491f79497e5d3d3597563cf78861a729bc07bfdc (patch) | |
tree | 304a079fd3f7c4c839e51e1215cf427acfffaf11 /mime-archpkg.sh | |
parent | b745e120e581097983d5a7e5ed014325552753f6 (diff) | |
download | aur-491f79497e5d3d3597563cf78861a729bc07bfdc.tar.gz |
Upstream: 0.3.9.2, fixed root user checking
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 |