From e23854399358287f4a075e138a7f729940941104 Mon Sep 17 00:00:00 2001 From: juronja <101410098+juronja@users.noreply.github.com> Date: Fri, 13 Feb 2026 13:35:40 +0000 Subject: [PATCH] fallback If no stable was found --- vm/truenas-vm.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vm/truenas-vm.sh b/vm/truenas-vm.sh index be8b90f28..88c9ceddc 100644 --- a/vm/truenas-vm.sh +++ b/vm/truenas-vm.sh @@ -310,6 +310,10 @@ function advanced_settings() { exit 1 fi + if [ "$last_stable_index" -eq -1 ]; then + last_stable_index=$(( (${#ISOARRAY[@]}) - 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