From be83e2e67273fa4b87b8370cc91f61f99c56de31 Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Sat, 26 Sep 2026 20:52:41 +0200 Subject: [PATCH] Keep a dash-led bridge comment out of whiptail's options The bridge picker labels each entry with the bridge's comment from /etc/network/interfaces. A comment beginning with a dash reached whiptail as an option, the menu failed before it drew, and the failure took the Back branch - so the wizard dropped straight back to the RAM step on every Next. --- ui/advanced.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/advanced.func b/ui/advanced.func index 4a317c1..125a77e 100644 --- a/ui/advanced.func +++ b/ui/advanced.func @@ -130,7 +130,7 @@ advanced_settings() { if [[ -n "$BRIDGES" ]]; then while IFS= read -r bridge; do if [[ -n "$bridge" ]]; then - local description=$(grep -A 10 "iface $bridge" /etc/network/interfaces 2>/dev/null | grep '^#' | head -n1 | sed 's/^#\s*//') + local description=$(grep -A 10 "iface $bridge" /etc/network/interfaces 2>/dev/null | grep '^#' | head -n1 | sed 's/^#[[:space:]-]*//') BRIDGE_MENU_OPTIONS+=("$bridge" "${description:- }") fi done <<<"$BRIDGES"