From c997910d5854da1bb2d9d10418841956f758b40c Mon Sep 17 00:00:00 2001 From: juronja <101410098+juronja@users.noreply.github.com> Date: Fri, 13 Feb 2026 13:22:13 +0000 Subject: [PATCH] order of operations fix --- vm/truenas-vm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/truenas-vm.sh b/vm/truenas-vm.sh index 8d2447ade..be8b90f28 100644 --- a/vm/truenas-vm.sh +++ b/vm/truenas-vm.sh @@ -305,13 +305,13 @@ function advanced_settings() { ((current_item++)) done < <(truenas_iso_lookup | sort -V) - ISOARRAY[$last_stable_index]="ON" - if [ ${#ISOARRAY[@]} -eq 0 ]; then echo "No ISOs found." exit 1 fi + ISOARRAY[$last_stable_index]="ON" + if SELECTED_ISO=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SELECT ISO TO INSTALL" --notags --radiolist "\nSelect version (BETA/RC/Latest stable):" 20 58 12 "${ISOARRAY[@]}" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then echo -e "${ISO}${BOLD}${DGN}ISO Chosen: ${BGN}$(basename "$SELECTED_ISO")${CL}" else