mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
[ refactor ] Optimize var not existing check
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
19531065ca
commit
54f8205478
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
gitignore_io_url="https://www.gitignore.io/api/"
|
||||
default_path="$HOME/.gi_list"
|
||||
if [[ ! -z "${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
|
||||
|
|
|
|||
Loading…
Reference in a new issue