scripts

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

commit bb24546550d4f7860444ca63859157af868e4b54
parent 2824bc7b3184b8cffb61f2190996f854102b7b38
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Mon,  9 May 2022 15:09:18 +0200

Fixed status when 0 tasks (do not display line)

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

diff --git a/status b/status @@ -26,5 +26,5 @@ network="Network: $(nmcli device status | head -n 2 | tail -n 1 | sed 's/.* //' events=$(sdep-list past | wc -l) printf "$time$sep$date$sep$battery$sep$network" -[ -n "$events" ] && printf "$sep$events TODO tasks" +[ "$events" != "0" ] && printf "$sep$events TODO task(s)" printf "\n"