From ec91310889f1dd75589e4bcc24174184571524b4 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 7 May 2025 10:59:04 +0200 Subject: [PATCH] Update debian-vm.sh --- vm/debian-vm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/debian-vm.sh b/vm/debian-vm.sh index e3e3e08..a6a75c2 100644 --- a/vm/debian-vm.sh +++ b/vm/debian-vm.sh @@ -214,7 +214,7 @@ function advanced_settings() { while true; do if VMID=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Virtual Machine ID" 8 58 $VMID --title "VIRTUAL MACHINE ID" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then if [ -z "$VMID" ]; then - VMID="$$VMID" + VMID=$(get_valid_nextid) fi if pct status "$VMID" &>/dev/null || qm status "$VMID" &>/dev/null; then echo -e "${CROSS}${RD} ID $VMID is already in use${CL}"