From 2c44f9bf2c219128d623ae0efa19cb7bc88d37ea Mon Sep 17 00:00:00 2001 From: Muhammad Ibrahim Date: Fri, 3 Oct 2025 22:25:25 +0100 Subject: [PATCH] fix: Remove -u flag from set command to prevent unbound variable errors --- agents/proxmox_auto_enroll.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agents/proxmox_auto_enroll.sh b/agents/proxmox_auto_enroll.sh index ad573a9..ff1202e 100755 --- a/agents/proxmox_auto_enroll.sh +++ b/agents/proxmox_auto_enroll.sh @@ -1,10 +1,10 @@ #!/bin/bash -set -euo pipefail # Exit on error, undefined vars, pipe failures +set -eo pipefail # Exit on error, pipe failures (removed -u as we handle unset vars explicitly) # Trap to catch errors only (not normal exits) trap 'echo "[ERROR] Script failed at line $LINENO with exit code $?"' ERR -SCRIPT_VERSION="1.1.0" +SCRIPT_VERSION="1.1.1" echo "[DEBUG] Script Version: $SCRIPT_VERSION ($(date +%Y-%m-%d\ %H:%M:%S))" # =============================================================================