From 4aba51ac67f32413129b191a910678f68eb0793b Mon Sep 17 00:00:00 2001 From: lubinatien <7661774+lubinatien@users.noreply.github.com> Date: Sun, 20 Jul 2025 10:48:16 +0200 Subject: [PATCH] fix: Do not discard trailing spaces in ssids (#120) Co-authored-by: lubinatien@gablem.eu --- other_authors/wifi.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/other_authors/wifi.sh b/other_authors/wifi.sh index f3457a9..46e452f 100644 --- a/other_authors/wifi.sh +++ b/other_authors/wifi.sh @@ -170,10 +170,10 @@ function connect_wifi() { i=0 _set_interface_wifi up 2>/dev/null sleep 1 - while read essid; read type; do - essids+=("$essid") + while IFS= read -r essid; read type; do + essids+=("${essid}") types+=("$type") - options+=("$i" "$essid") + options+=("$i" "${essid}") ((i++)) done < <(list_wifi) options+=("H" "Hidden ESSID")