:-'Generic Commit'
This commit is contained in:
parent
865d04ca0d
commit
0da43c5d25
@ -15,7 +15,7 @@ if [ -n "${SUDO_USER:-}" ] && [ "$SUDO_USER" != "root" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# test sudo is working or we're root (return non-zero if not root!)
|
# test sudo is working or we're root (return non-zero if not root!)
|
||||||
if ! /bin/bash -c '"$SUDOCMD" true'; then
|
if ! /bin/bash -c '"$SUDOCMD" echo "whee"'; then
|
||||||
echo "Error: This script must be run as root or with sudo privileges." >&2
|
echo "Error: This script must be run as root or with sudo privileges." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user