summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'