Update create_lxc.sh

This commit is contained in:
CanbiZ 2025-07-01 15:54:23 +02:00
parent 82dcad5cae
commit 689f2cc999

View File

@ -153,12 +153,14 @@ function select_storage() {
exit 202 exit 202
} }
if [[ -z "$DISPLAY_SELECTED" ]]; then # Validierung gegen STORAGE_MAP
if [[ -z "$DISPLAY_SELECTED" || -z "${STORAGE_MAP[$DISPLAY_SELECTED]+_}" ]]; then
whiptail --backtitle "Proxmox VE Helper Scripts" --title "Invalid Selection" \ whiptail --backtitle "Proxmox VE Helper Scripts" --title "Invalid Selection" \
--msgbox "No storage selected. Please choose a storage pool to continue." 9 60 --msgbox "No valid storage selected. Please choose a storage pool to continue." 9 60
else continue
break
fi fi
break
done done
echo "${STORAGE_MAP["$DISPLAY_SELECTED"]}" echo "${STORAGE_MAP["$DISPLAY_SELECTED"]}"