]> gitweb.fluxo.info Git - scripts.git/commitdiff
Status: fix spool.md check
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 5 Feb 2019 01:42:35 +0000 (23:42 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 5 Feb 2019 01:42:35 +0000 (23:42 -0200)
status

diff --git a/status b/status
index 7242193e0ef2a9d7fd152864e1069de6190d08e6..2df4b73ddbfa7cd42598bcad9fb01d7a2f1ff5df 100755 (executable)
--- 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