diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-05-31 20:52:53 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-05-31 20:52:53 +0530 |
commit | d2e7060f89e8782c223bc8a29091cca429bc318a (patch) | |
tree | 87bd7063077de0ebc3945a923b380c7ffba26f60 /Scripts/.local/scripts/status/connection | |
parent | 9ef78de26320e8d835276344802e95c84c263277 (diff) | |
download | dotfiles-d2e7060f89e8782c223bc8a29091cca429bc318a.tar.gz dotfiles-d2e7060f89e8782c223bc8a29091cca429bc318a.tar.bz2 dotfiles-d2e7060f89e8782c223bc8a29091cca429bc318a.zip |
(Scripts|SystemD)~lower size of scripts
Diffstat (limited to 'Scripts/.local/scripts/status/connection')
-rwxr-xr-x | Scripts/.local/scripts/status/connection | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Scripts/.local/scripts/status/connection b/Scripts/.local/scripts/status/connection index 8e4ebf3..277dedf 100755 --- a/Scripts/.local/scripts/status/connection +++ b/Scripts/.local/scripts/status/connection @@ -3,8 +3,11 @@ internet=$(nmcli g | sed -n 2p | awk '{print $1}') if [[ $internet == "connected" ]] then - con=$(nmcli | grep "connected to" | sed 's/.*: connected to \(.*\)/\1/g') + con=$(nmcli | grep "connected to" | sed "s/.*: connected to \(.*\)/\1/g") echo "" $con +elif [[ $internet == "disconnected" ]] +then + echo "" else echo " Not Connected" fi |