]> gitweb.fluxo.info Git - scripts.git/commitdiff
Status: check for spool file
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 6 Oct 2018 23:30:43 +0000 (20:30 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 6 Oct 2018 23:30:43 +0000 (20:30 -0300)
status

diff --git a/status b/status
index e242609ca77cbef2677d87b65f09849dddc4288f..7242193e0ef2a9d7fd152864e1069de6190d08e6 100755 (executable)
--- a/status
+++ b/status
@@ -102,6 +102,11 @@ function status_run {
     # Alarms set
     #xalarm list
 
+    # Check for spool files
+    if [ -e "$HOME/temp/log/spool.md" ] && [ "`wc -l $HOME/temp/log/spool.md`" != "0" ]; then
+      echo "Spool file not empty: $HOME/temp/log/spool.md"
+    fi
+
     # Check if are dangling downloaded files
     if [ -e "$HOME/load" ] && [ ! -z "`ls -1 ~/load/`" ]; then
       # Print a newline if needed depending of the output of the previous commands