diff --git a/dot_local/bin/executable_toggle-wifi b/dot_local/bin/executable_toggle-wifi index e61ef19..b097e13 100644 --- a/dot_local/bin/executable_toggle-wifi +++ b/dot_local/bin/executable_toggle-wifi @@ -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