From d2e7060f89e8782c223bc8a29091cca429bc318a Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 31 May 2024 20:52:53 +0530 Subject: (Scripts|SystemD)~lower size of scripts --- Scripts/.local/scripts/status/connection | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Scripts/.local/scripts/status/connection') 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 -- cgit v1.2.3-13-gbd6f