]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/remind/remind.ax-io
Correctly test XDG_CACHE_HOME for writability for "stamp files"
[ax-zsh.git] / plugins / remind / remind.ax-io
index 519a4264ac1d087583da05979917ce3f1dcad102..457e45aebe39f66b4da9cb791ad589b9dc1beb1b 100644 (file)
@@ -24,4 +24,4 @@ alias remindcal='remind -ccu+3 -m -w$COLUMNS,4,0 $HOME/.remind'
 remind -h -g -t5 ~/.remind && echo
 
 # Wtite "stamp" file.
-[[ -w ~/ ]] && touch "$XDG_CACHE_HOME/axzsh_last_reminder"
+[[ -w "$XDG_CACHE_HOME" ]] && touch "$XDG_CACHE_HOME/axzsh_last_reminder"