From: Mart Lubbers Date: Thu, 28 Mar 2019 09:10:05 +0000 (+0100) Subject: newmail patch X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=c5913497384c61956c501613227bfadf7ddae081;p=dotfiles.git newmail patch --- diff --git a/email/.local/bin/newmail.sh b/email/.local/bin/newmail.sh index 4290971..a1828a0 100755 --- a/email/.local/bin/newmail.sh +++ b/email/.local/bin/newmail.sh @@ -3,7 +3,7 @@ newmail="$(find ~/.local/share/offlineimap/mail/INBOX/new/ -type f | wc -l)" if [ "$newmail" -eq 1 ] then notify-send "1 new email!" -else if [ "$newmail" -ne 0 ] +elif [ "$newmail" -ne 0 ] then notify-send "$newmail new emails!" fi