From bb24546550d4f7860444ca63859157af868e4b54 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 9 May 2022 15:09:18 +0200 Subject: Fixed status when 0 tasks (do not display line) --- status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'status') diff --git a/status b/status index 90a651d..0f45a96 100755 --- 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" -- cgit v1.3