From 0e7fc8e089fbc2ce3651757f852681050a8efef7 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 27 Jun 2024 14:22:30 +0200 Subject: [PATCH] update iw listing --- usr/bin/archboot-network.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/bin/archboot-network.sh b/usr/bin/archboot-network.sh index 6ea3a4dce..3a0554596 100755 --- a/usr/bin/archboot-network.sh +++ b/usr/bin/archboot-network.sh @@ -61,8 +61,8 @@ _wireless() { #shellcheck disable=SC2086,SC2046 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 ' *$' ' _' 2>"${_ANSWER}"; then + $(iwctl station "${_INTERFACE}" get-networks |\ + rg -o ' {6}(.{34}).*\*' -r '"$1"' | sd ' *\n$' ' _\n') 2>"${_ANSWER}"; then _WLAN_SSID=$(cat "${_ANSWER}") _CONTINUE=1 if rg -q 'RESCAN' "${_ANSWER}"; then