1
0
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:
Daniel Carrillo 2019-10-04 19:18:23 +02:00
parent 94c6b416dd
commit 404ce6eab6

View File

@ -47,7 +47,7 @@ function switch_connections()
local name="$1"
local status=$2
if [[ "$status" == "UP" ]]; then
if [[ "$status" == "" ]]; then
nmcli connection down "$name"
else
nmcli connection up "$name"