From 16ff7800936e3f629798f86addc4ea7ce9663956 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Thu, 20 Apr 2017 20:33:04 +1200 Subject: Don't tell when no currency cache directory --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index fb322db..4f293ee 100644 --- a/bashrc +++ b/bashrc @@ -49,6 +49,6 @@ fi [ -d ~/Maildir/new/ ] && [ "$(ls ~/Maildir/new/)" ] && echo 'New mail' -[ -z "$(ls -A ~/.cache/currency)" ] || for c in ~/.cache/currency/* ; do +[ -z "$(ls -A ~/.cache/currency 2>/dev/null)" ] || for c in ~/.cache/currency/* ; do echo "$(cat $c) (at $(date +"%a %d %H:%M" --date=@$(stat -c %Y $c)))" done -- cgit v1.1