:-'Generic Commit'

This commit is contained in:
Your Name 2025-05-29 19:33:28 +12:00
parent 865d04ca0d
commit 0da43c5d25

View File

@ -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