summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-09-03 21:04:58 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2016-09-03 21:04:58 +1200
commit8dcda565e78a23685042b530a8b2428ee3d2fce5 (patch)
treeddaa12daed10d1b1fc3c8e02e651cc0c411d3dc9
parent47158da717f6b96fe7e5b8d61311d7be7530f430 (diff)
downloaddotfiles-8dcda565e78a23685042b530a8b2428ee3d2fce5.tar.xz
Allow no maildir directory
-rw-r--r--bashrc2
1 files changed, 1 insertions, 1 deletions
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'