mirror of
https://github.com/RasppleII/a2server.git
synced 2025-01-03 02:31:22 +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 hash sudo 2>/dev/null; then
|
||||
Run sudo $0 "$@"
|
||||
exit 0
|
||||
exit $?
|
||||
else
|
||||
printf "%s requires \"root\" administrator access to upgrade your system.\n" "$PROGRAM"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user