mirror of
https://github.com/RasppleII/a2server.git
synced 2025-01-04 23:30:06 +00:00
Return error code when running as user
This commit is contained in:
parent
02ebf26cf2
commit
a939111f6a
@ -87,7 +87,7 @@ fi
|
|||||||
if [[ "$UID" != "0" ]]; then
|
if [[ "$UID" != "0" ]]; then
|
||||||
if hash sudo 2>/dev/null; then
|
if hash sudo 2>/dev/null; then
|
||||||
Run sudo $0 "$@"
|
Run sudo $0 "$@"
|
||||||
exit 0
|
exit $?
|
||||||
else
|
else
|
||||||
printf "%s requires \"root\" administrator access to upgrade your system.\n" "$PROGRAM"
|
printf "%s requires \"root\" administrator access to upgrade your system.\n" "$PROGRAM"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user