diff --git a/update-pr-stack.sh b/update-pr-stack.sh index 7d48e8f..a08be11 100755 --- a/update-pr-stack.sh +++ b/update-pr-stack.sh @@ -27,7 +27,7 @@ CONFLICT_LABEL="autorestack-needs-conflict-resolution" # Function to check if a required environment variable is set check_env_var() { - if [ -z "${!1}" ]; then + if [[ -z "${!1-}" ]]; then echo "Error: $1 is not set" >&2 exit 1 fi