Skip to content

Commit

Permalink
lib/utilities: use $XDG_CACHE_HOME properly
Browse files Browse the repository at this point in the history
We should fall back to the default location, not use an entirely different one.
  • Loading branch information
gaelicWizard committed Mar 4, 2022
1 parent 5549523 commit 545bc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utilities.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 545bc11

Please sign in to comment.