From 177bfdd43ceb3968e525d5c69778f403a4910907 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 4 Feb 2019 23:42:35 -0200 Subject: Status: fix spool.md check --- status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status b/status index 7242193..2df4b73 100755 --- a/status +++ b/status @@ -103,7 +103,7 @@ function status_run { #xalarm list # Check for spool files - if [ -e "$HOME/temp/log/spool.md" ] && [ "`wc -l $HOME/temp/log/spool.md`" != "0" ]; then + if [ -e "$HOME/temp/log/spool.md" ] && [ "`wc -l $HOME/temp/log/spool.md | cut -d ' ' -f 1`" != "0" ]; then echo "Spool file not empty: $HOME/temp/log/spool.md" fi -- cgit v1.2.3