The added sed command s/^[- ]*// removes any leading dashes or spaces from the description (#11285)

This commit is contained in:
Lavacano
2026-01-28 10:31:26 -06:00
committed by GitHub
parent ce4d2350ef
commit bac7f07a74

View File

@@ -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"