From 8dcda565e78a23685042b530a8b2428ee3d2fce5 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 3 Sep 2016 21:04:58 +1200 Subject: Allow no maildir directory --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 3b3bd56..1447527 100644 --- a/bashrc +++ b/bashrc @@ -66,4 +66,4 @@ if [ -f ~/.cache/weather/forecast ]; then cat ~/.cache/weather/forecast | while read -r l ; do echo " "$l ; done fi -[ "$(ls ~/Maildir/new/)" ] && echo 'New mail' +[ -d ~/Maildir/new/ ] && [ "$(ls ~/Maildir/new/)" ] && echo 'New mail' -- cgit v1.1