summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-04-20 20:33:04 +1200
committerDavid Phillips <david@sighup.nz>2017-04-20 20:33:04 +1200
commit16ff7800936e3f629798f86addc4ea7ce9663956 (patch)
treefd6be15d07f5d85804c45011931728d4a1eb3baf
parentabee89d80e889a682fc239e71f4acb65b1c76dcf (diff)
downloaddotfiles-16ff7800936e3f629798f86addc4ea7ce9663956.tar.xz
Don't tell when no currency cache directory
-rw-r--r--bashrc2
1 files changed, 1 insertions, 1 deletions
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