From: Silvio Rhatto Date: Tue, 5 Feb 2019 01:42:35 +0000 (-0200) Subject: Status: fix spool.md check X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=177bfdd43ceb3968e525d5c69778f403a4910907;p=scripts.git Status: fix spool.md check --- 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