:-'Generic Commit'

This commit is contained in:
Your Name 2025-05-29 19:32:25 +12:00
parent 964912e155
commit 865d04ca0d

View File

@ -15,7 +15,7 @@ if [ -n "${SUDO_USER:-}" ] && [ "$SUDO_USER" != "root" ]; then
fi
# test sudo is working or we're root (return non-zero if not root!)
if ! "$SUDOCMD" true; then
if ! /bin/bash -c '"$SUDOCMD" true'; then
echo "Error: This script must be run as root or with sudo privileges." >&2
exit 1
fi