aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-02-04 23:42:35 -0200
committerSilvio Rhatto <rhatto@riseup.net>2019-02-04 23:42:35 -0200
commit177bfdd43ceb3968e525d5c69778f403a4910907 (patch)
tree2741fe92d95824c1d8210cc6417bd2852df70997
parent173f4d72aecd8f3cda669cf8f477df918bf254e0 (diff)
downloadscripts-177bfdd43ceb3968e525d5c69778f403a4910907.tar.gz
scripts-177bfdd43ceb3968e525d5c69778f403a4910907.tar.bz2
Status: fix spool.md check
-rwxr-xr-xstatus2
1 files changed, 1 insertions, 1 deletions
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