From 7678b69825b51e3697a0acce0c8b150be0398f29 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 29 Nov 2016 10:31:07 -0200 Subject: Check for postponed file --- postponed | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/postponed b/postponed index d08d281..38aaf9e 100755 --- a/postponed +++ b/postponed @@ -5,6 +5,13 @@ # Setup POSTPONED="$HOME/temp/mutt/postponed" + +# Check +if [ ! -e "$POSTPONED" ]; then + exit +fi + +# Calculate TOTAL="`grep "^From: " $POSTPONED | wc -l`" # Print -- cgit v1.2.3