From 3792ec0a6088ff3f80c35d453aa81884488fab9b Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Thu, 8 Jan 2026 22:44:40 +0100 Subject: [PATCH] Fix: handle missing argument in build-windows.sh Fix unbound variable error when script is run without arguments. Use parameter expansion ${1:-} instead of $1 to safely check for --installer flag when set -u is enabled. --- docker-build/build-windows.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-build/build-windows.sh b/docker-build/build-windows.sh index 30e9fda..284a372 100755 --- a/docker-build/build-windows.sh +++ b/docker-build/build-windows.sh @@ -5,7 +5,7 @@ set -euo pipefail BUILD_INSTALLER=false # Check for --installer flag -if [[ "$1" == "--installer" ]]; then +if [[ "${1:-}" == "--installer" ]]; then BUILD_INSTALLER=true echo "[*] Installer build requested." fi