From 5d68b20a4a4a3b2b4d018783296b873d5c845a8a Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Fri, 26 Sep 2025 12:52:44 +0200 Subject: [PATCH] Add Description field for Bridges --- misc/build.func | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/build.func b/misc/build.func index f2578240..690620d5 100644 --- a/misc/build.func +++ b/misc/build.func @@ -630,19 +630,19 @@ advanced_settings() { echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}" else # Build bridge menu with descriptions - BRIDGE_MENU_OPTIONS="" + BRIDGE_MENU_OPTIONS=() while IFS= read -r bridge; do if [[ -n "$bridge" ]]; then description=$(get_bridge_description "$bridge") if [[ -n "$description" ]]; then - BRIDGE_MENU_OPTIONS="${BRIDGE_MENU_OPTIONS}${bridge} \"${bridge} - ${description}\" " + BRIDGE_MENU_OPTIONS+=("$bridge" "${bridge} - ${description}") else - BRIDGE_MENU_OPTIONS="${BRIDGE_MENU_OPTIONS}${bridge} \"${bridge}\" " + BRIDGE_MENU_OPTIONS+=("$bridge" "$bridge") fi fi done <<< "$BRIDGES" - BRG=$(whiptail --backtitle "Proxmox VE Helper Scripts" --menu "Select network bridge:" 15 60 6 $BRIDGE_MENU_OPTIONS 3>&1 1>&2 2>&3) + BRG=$(whiptail --backtitle "Proxmox VE Helper Scripts" --menu "Select network bridge:" 15 60 6 "${BRIDGE_MENU_OPTIONS[@]}" 3>&1 1>&2 2>&3) if [[ -z "$BRG" ]]; then exit_script else