]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/calendar/calendar.ax-io
Correctly test XDG_CACHE_HOME for writability for "stamp files"
[ax-zsh.git] / plugins / calendar / calendar.ax-io
index 56c65f784f5fb6dc9f5dfa9151b58bae70bcafea..6d573d210f2d558d83752eeddfcd1ffaed3c6127 100644 (file)
@@ -27,4 +27,4 @@ fi
 rm -f "$tmpfile"
 
 # Wtite "stamp" file.
-[[ -w ~/ ]] && touch "$XDG_CACHE_HOME/axzsh_last_calendar"
+[[ -w "$XDG_CACHE_HOME" ]] && touch "$XDG_CACHE_HOME/axzsh_last_calendar"