scripts

Various scripts for UNIX-like systems
git clone https://git.tronto.net/scripts
Download | Log | Files | Refs | README

commit 4e9c45553f24850ea7973d4326ab922db10a96e9
parent 5c2d30e12fd2e4dde3b3d9aa6b486b63f2e73534
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Mon,  9 May 2022 11:40:32 +0200

Fix network name with spaces

Diffstat:
Mstatus | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/status b/status @@ -20,7 +20,8 @@ else battery="No battery" fi -network=$(nmcli device status | head -n 2 | tail -n 1 | awk '{print "Network: " $4}') +#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/.* //')" events=$(sdep-list past | wc -l)