aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-05-09 15:09:18 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-05-09 15:09:18 +0200
commitbb24546550d4f7860444ca63859157af868e4b54 (patch)
tree213d95dc0b5d12bbb28dffd520fc8ad8115fcc65
parent2824bc7b3184b8cffb61f2190996f854102b7b38 (diff)
downloadscripts-bb24546550d4f7860444ca63859157af868e4b54.tar.gz
scripts-bb24546550d4f7860444ca63859157af868e4b54.zip
Fixed status when 0 tasks (do not display line)
-rwxr-xr-xstatus2
1 files changed, 1 insertions, 1 deletions
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/.* //'
26events=$(sdep-list past | wc -l) 26events=$(sdep-list past | wc -l)
27 27
28printf "$time$sep$date$sep$battery$sep$network" 28printf "$time$sep$date$sep$battery$sep$network"
29[ -n "$events" ] && printf "$sep$events TODO tasks" 29[ "$events" != "0" ] && printf "$sep$events TODO task(s)"
30printf "\n" 30printf "\n"

Generated with cgit - Back to sebastiano.tronto.net