:-'Generic Commit'

This commit is contained in:
Your Name 2025-05-29 19:35:34 +12:00
parent 0da43c5d25
commit d76af05a2e

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 ! /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
exit 1
fi