From 394a0b0a7c38b71f40424ff28067b65fb7f382ef Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 7 Apr 2026 00:23:07 +0000 Subject: [PATCH] Fix: empty Enter on VM selection crashes due to set -u (unset variable) Added || true on read and ${:-} default expansion to handle empty input safely. Co-Authored-By: Claude Opus 4.6 (1M context) --- pharmq-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pharmq-setup.sh b/pharmq-setup.sh index 18a8883..3281e56 100644 --- a/pharmq-setup.sh +++ b/pharmq-setup.sh @@ -435,10 +435,10 @@ PYEOF print_ok "VM 백업 자동 선택: $TEMPLATE_VMID" else echo -ne "${CYAN}복원할 VM 백업 ID (숫자, Enter로 건너뛰기): ${NC}" - read -r TEMPLATE_VMID