Allow to run --help without root / sudo permissions (Thanks, Aljosha.)
This commit is contained in:
parent
ec69b4b7f0
commit
fe281d8089
10
vpm
10
vpm
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue