try to allow whitespace in essid

This commit is contained in:
Tobias Powalowski 2024-06-30 19:53:49 +02:00
parent 8209ef50c4
commit 098ca073a5

View file

@ -54,7 +54,7 @@ _wireless() {
# only show lines with signal '*'
# kill spaces from the end and replace spaces with + between
#shellcheck disable=SC2086,SC2046
if _dialog --column-separator : --cancel-label "${_LABEL}" --title " SSID Scan Result " --menu "Empty spaces in your SSID are replaced by '+' char" 13 60 6 \
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