aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-10-06 20:30:43 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-10-06 20:30:43 -0300
commit0bc3d6b5d3aded05f8e241769470360b8c939f62 (patch)
tree7a2cd33ecffcb2802ac24f4ecff136322dad8ee3
parent6deabc70ad80fb0da11dde1078380f0af9c5e6f7 (diff)
downloadscripts-0bc3d6b5d3aded05f8e241769470360b8c939f62.tar.gz
scripts-0bc3d6b5d3aded05f8e241769470360b8c939f62.tar.bz2
Status: check for spool file
-rwxr-xr-xstatus5
1 files changed, 5 insertions, 0 deletions
diff --git a/status b/status
index e242609..7242193 100755
--- 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