mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-21 17:33:11 -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