:-'Generic Commit'
This commit is contained in:
parent
0da43c5d25
commit
d76af05a2e
@ -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" echo "whee"'; then
|
if ! $SUDOCMD true; 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