Skip to content

Commit 67e70ad

Browse files
authored
ssid: fix for ssids with spaces
This fixes a problem with ssids with spaces. If the ssid is named "My network" the script would only print "My". I have fixed this so it now prints "My network".
1 parent 154001e commit 67e70ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssid/ssid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fi
3030

3131
#------------------------------------------------------------------------
3232

33-
SSID=$(iw "$INTERFACE" info | awk '/ssid/ {print $2}')
33+
SSID=$(iw "$INTERFACE" info | awk '/ssid/ {$1=""; print $0}')
3434

3535
#------------------------------------------------------------------------
3636

0 commit comments

Comments
 (0)