Allow single space in SSID
This commit is contained in:
parent
5f6bcbe072
commit
8552974810
|
@ -46,7 +46,7 @@ elif [ "$CHENTRY" = "Toggle Off" ]; then
|
|||
else
|
||||
|
||||
# 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 '\*')
|
||||
if [ -n "$CURRSSID" ]; then
|
||||
nmcli con down "$CHSSID"
|
||||
|
|
Loading…
Reference in New Issue