mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-08 13:30:47 -05:00
scripts: correct formatting for toggle-wifi
This commit is contained in:
parent
b699d1577a
commit
990a1bfc2d
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $(connmanctl state | awk '/State/ {print $NF}') == 'online' ]; then
|
||||
if [ "$(connmanctl state | awk '/State/ {print $NF}')" = 'online' ]; then
|
||||
connmanctl disable wifi
|
||||
else
|
||||
connmanctl enable wifi
|
||||
|
|
Loading…
Reference in a new issue