From b0e073da7539b49d4b07a62f69f4f8956aec45dd Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 25 Jan 2023 08:57:16 -0500 Subject: [PATCH] Update pimox-haos-vm-v5.sh --- vm/pimox-haos-vm-v5.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/pimox-haos-vm-v5.sh b/vm/pimox-haos-vm-v5.sh index 477c28c8..cebce5e2 100644 --- a/vm/pimox-haos-vm-v5.sh +++ b/vm/pimox-haos-vm-v5.sh @@ -137,7 +137,7 @@ if [ $exitstatus = 0 ]; then echo -e "${DGN}Using HAOS Version: ${BGN}$BRANCH${C VMID=$(whiptail --inputbox "Set Virtual Machine ID" 8 58 $NEXTID --title "VIRTUAL MACHINE ID" --cancel-button Exit-Script 3>&1 1>&2 2>&3) exitstatus=$? if [ -z $VMID ]; then VMID="$NEXTID"; echo -e "${DGN}Virtual Machine: ${BGN}$VMID${CL}"; - elif + else if echo "$USEDID" | egrep -q "$VMID" then echo -e "\n🚨 ${RD}ID $VMID is already in use${CL} \n"