Skip to content

Commit e61622e

Browse files
committed
lib/utilities: lint _bash-it-component-cache-file()
1 parent 07674f2 commit e61622e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/utilities.bash

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ function _bash-it-component-help()
8484
cat "${file}"
8585
}
8686

87-
_bash-it-component-cache-file() {
88-
local component="$(_bash-it-pluralize-component "${1}")"
89-
local file="${BASH_IT}/tmp/cache/${component}"
87+
function _bash-it-component-cache-file() {
88+
local component file
89+
component="$(_bash-it-pluralize-component "${1}")"
90+
file="${BASH_IT}/tmp/cache/${component}"
9091
[[ -f "${file}" ]] || mkdir -p "${file%/*}"
9192
printf '%s' "${file}"
9293
}

0 commit comments

Comments
 (0)