fix wireless ESSID scan

This commit is contained in:
Tobias Powalowski 2024-07-06 19:43:56 +02:00
parent 2b428421d2
commit 6294cd86a6

View file

@ -57,7 +57,7 @@ _wireless() {
if _dialog --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 ' ' '+' | sd '\+*\n$' ' _') 2>"${_ANSWER}"; then
sd ' ' '+' | sd '\++$' ' _') 2>"${_ANSWER}"; then
_WLAN_SSID=$(cat "${_ANSWER}")
_CONTINUE=1
if rg -q 'RESCAN' "${_ANSWER}"; then