From a939111f6aed38cfde19fa8808bf35a3130c33d9 Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Fri, 9 Dec 2016 14:11:54 -0800 Subject: [PATCH] Return error code when running as user --- scripts/tools/debupdate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tools/debupdate b/scripts/tools/debupdate index 1717eca..e40fc3d 100755 --- a/scripts/tools/debupdate +++ b/scripts/tools/debupdate @@ -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