From 675d70e616cb764c685070427a914e4b99f3cee7 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 10 May 2022 15:09:40 +0200 Subject: Fixed Network status (what kind of cli program add random white spaces at the end of a line? why? WHY?!?!) --- status | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/status b/status index 0f45a96..7a2825f 100755 --- a/status +++ b/status @@ -21,7 +21,10 @@ else fi #network=$(nmcli device status | head -n 2 | tail -n 1 | awk '{print "Network: " $4}') -network="Network: $(nmcli device status | head -n 2 | tail -n 1 | sed 's/.* //')" +# NetworkManager has a dreadful command line interface +# It makes cry every time +# pls help +network="Network: $(nmcli device status | head -n 2 | tail -n 1 | sed 's/ *$//' | sed 's/.* //')" events=$(sdep-list past | wc -l) -- cgit v1.3