]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/neofetch/neofetch.ax-io
Correctly test XDG_CACHE_HOME for writability for "stamp files"
[ax-zsh.git] / plugins / neofetch / neofetch.ax-io
index 7a37f6ec12bff7d1b3ed50f37f3a7cd40e7b2970..5798d58d07f662f5376a7798fc83a81736e46fc3 100644 (file)
@@ -23,4 +23,4 @@ else
 fi
 
 # Wtite "stamp" file.
-[[ -w ~/ ]] && touch "$XDG_CACHE_HOME/axzsh_last_neofetch"
+[[ -w "$XDG_CACHE_HOME" ]] && touch "$XDG_CACHE_HOME/axzsh_last_neofetch"