mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 12:48:01 +00:00
[polybar] Fix bug at nmcli_manager
This commit is contained in:
parent
94c6b416dd
commit
404ce6eab6
@ -47,7 +47,7 @@ function switch_connections()
|
|||||||
local name="$1"
|
local name="$1"
|
||||||
local status=$2
|
local status=$2
|
||||||
|
|
||||||
if [[ "$status" == "UP" ]]; then
|
if [[ "$status" == "" ]]; then
|
||||||
nmcli connection down "$name"
|
nmcli connection down "$name"
|
||||||
else
|
else
|
||||||
nmcli connection up "$name"
|
nmcli connection up "$name"
|
||||||
|
Loading…
Reference in New Issue
Block a user