lib/utilities: use `$XDG_CACHE_HOME` properly

We should fall back to the default location, not use an entirely different one.
pull/2065/head
John D Pell 2022-02-03 18:18:21 -08:00 committed by John D Pell
parent 51a0ae3369
commit 9ed8cddc8a
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ function _bash-it-component-item-is-enabled() {
component_type="${1}" item_name="${2?}"
fi
for each_file in "${BASH_IT}/enabled"/*"${BASH_IT_LOAD_PRIORITY_SEPARATOR?}${item_name}.${component_type}"*."bash" \
for each_file in "${BASH_IT?}/enabled"/*"${BASH_IT_LOAD_PRIORITY_SEPARATOR?}${item_name}.${component_type}"*."bash" \
"${BASH_IT}/${component_type}"*/"enabled/${item_name}.${component_type}"*."bash" \
"${BASH_IT}/${component_type}"*/"enabled"/*"${BASH_IT_LOAD_PRIORITY_SEPARATOR?}${item_name}.${component_type}"*."bash"; do
if [[ -f "${each_file}" ]]; then