Allow single space in SSID

This commit is contained in:
John Mertz 2023-10-19 11:54:41 -06:00
parent 5f6bcbe072
commit 8552974810
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ elif [ "$CHENTRY" = "Toggle Off" ]; then
else else
# If the connection is already in use, then this will still be able to get the SSID # If the connection is already in use, then this will still be able to get the SSID
CHSSID=$(echo "$CHENTRY" | cut -d' ' -f1) CHSSID=$(echo "$CHENTRY" | sed 's/ .*//')
CURRSSID=$(echo "$CHENTRY" | grep '\*') CURRSSID=$(echo "$CHENTRY" | grep '\*')
if [ -n "$CURRSSID" ]; then if [ -n "$CURRSSID" ]; then
nmcli con down "$CHSSID" nmcli con down "$CHSSID"