From fa35cdab99496bd3f887805c702307988b28254e Mon Sep 17 00:00:00 2001 From: equt Date: Mon, 2 Nov 2020 20:22:53 +0800 Subject: [PATCH] [ fix ] Quote the XDG_CACHE_HOME --- bin/git-ignore-io | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-ignore-io b/bin/git-ignore-io index 07b7582..284801a 100755 --- a/bin/git-ignore-io +++ b/bin/git-ignore-io @@ -2,7 +2,7 @@ gitignore_io_url="https://www.gitignore.io/api/" default_path="$HOME/.gi_list" -if [[ -n $XDG_CACHE_HOME ]]; then +if [[ -n "$XDG_CACHE_HOME" ]]; then default_path="$XDG_CACHE_HOME/git-extras/gi_list" mkdir -p "$XDG_CACHE_HOME/git-extras" fi