update iw listing

This commit is contained in:
Tobias Powalowski 2024-06-27 12:01:53 +02:00
parent 809bf9c4a0
commit 7c2d59a15f

View file

@ -40,7 +40,7 @@ _essid_list() {
# only show lines with signal '*'
# kill spaces from the end and replace spaces with + between
# '+' character is one of 6 forbidden characters in SSID standard
for dev in $(iwctl station "${_INTERFACE}" get-networks | rg -o '(.{1,41}).*\*' -r '$1' | sd ' *.$|^.* ' ''); do
for dev in $(iwctl station "${_INTERFACE}" get-networks | rg -o '(.{1,41}).*\*' -r '$1' | sd '^ * | * $' ''); do
echo "${dev}"
[[ "${1}" ]] && echo "${1}"
done