Allow to run --help without root / sudo permissions (Thanks, Aljosha.)

This commit is contained in:
root@nirvana 2017-07-19 15:53:19 +02:00
parent ec69b4b7f0
commit fe281d8089
1 changed files with 5 additions and 5 deletions

10
vpm
View File

@ -94,11 +94,6 @@ rmsg () {
color sgr0
}
if [[ "$UID" -gt 0 ]]; then
msg "ERROR: ${0##*/} needs super-user privileges. Exiting."
exit 255
fi
banner () {
banner_fg=77
@ -275,6 +270,11 @@ if [[ "$arg" =~ --.* ]]; then
arg="$b"
fi
if [[ "$UID" -gt 0 ]]; then
msg "ERROR: ${0##*/} needs super-user privileges. Exiting."
exit 255
fi
case "$arg" in
info|in)
shift