try to allow whitespace in essid

This commit is contained in:
Tobias Powalowski 2024-06-30 19:55:44 +02:00
parent 098ca073a5
commit 76fd828bdd

View file

@ -57,7 +57,7 @@ _wireless() {
if _dialog --column-separator ":" --cancel-label "${_LABEL}" --title " SSID Scan Result " --menu "Empty spaces in your SSID are replaced by '+' char" 13 60 6 \
"RESCAN":"SSIDs":"HIDDEN":"SSID":$(iwctl station "${_INTERFACE}" get-networks |\
rg -o ' {6}(.{34}).*\*' -r '$1' |\
sd '\+*\n$' ':_') 2>"${_ANSWER}"; then
sd '\n$' ':_') 2>"${_ANSWER}"; then
_WLAN_SSID=$(cat "${_ANSWER}")
_CONTINUE=1
if rg -q 'RESCAN' "${_ANSWER}"; then