From b841873b388fd4d176e3f29c0da19c3b0bdc0eb4 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 28 Apr 2016 11:43:26 +0300 Subject: [PATCH] MailLoop: create mail dir in loop. (can be removed by cleaner or by another reason). --- mail_loop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_loop.sh b/mail_loop.sh index af5fb1f..3b9b18d 100755 --- a/mail_loop.sh +++ b/mail_loop.sh @@ -2,9 +2,9 @@ # mymail_gmail_loop.sh MAILDIR=/tmp/$USER-mail_loop -mkdir --mode=700 $MAILDIR 2>/dev/null while [ 1 ]; do + mkdir --mode=700 $MAILDIR 2>/dev/null val=$(timeout -k 30 25 ~/.config/awesome/mail_loop_mymail.py) if [[ "$val" == "" ]]; then val = "?"; fi echo $val > $MAILDIR/mymail_count