From bac7f07a7454594399b161b49a1aa6b8fe23970d Mon Sep 17 00:00:00 2001 From: Lavacano Date: Wed, 28 Jan 2026 10:31:26 -0600 Subject: [PATCH] The added sed command s/^[- ]*// removes any leading dashes or spaces from the description (#11285) --- misc/build.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/build.func b/misc/build.func index 03868129a..b0877f4c4 100644 --- a/misc/build.func +++ b/misc/build.func @@ -1817,7 +1817,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/^#\s*//;s/^[- ]*//') BRIDGE_MENU_OPTIONS+=("$bridge" "${description:- }") fi done <<<"$BRIDGES"