From 865d04ca0d6a711a5aad89e6be0f5122f67c6c20 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 29 May 2025 19:32:25 +1200 Subject: [PATCH] :-'Generic Commit' --- dropshell-build/install_dropshell_build_host.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dropshell-build/install_dropshell_build_host.sh b/dropshell-build/install_dropshell_build_host.sh index 63d1d81..2f4a01a 100755 --- a/dropshell-build/install_dropshell_build_host.sh +++ b/dropshell-build/install_dropshell_build_host.sh @@ -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