lib/utilities: lint `_bash-it-component-cache-file()`
parent
b3fd8aada8
commit
8cf24f19a2
|
|
@ -85,9 +85,10 @@ function _bash-it-component-help()
|
||||||
cat "${file}"
|
cat "${file}"
|
||||||
}
|
}
|
||||||
|
|
||||||
_bash-it-component-cache-file() {
|
function _bash-it-component-cache-file() {
|
||||||
local component="$(_bash-it-pluralize-component "${1}")"
|
local component file
|
||||||
local file="${BASH_IT}/tmp/cache/${component}"
|
component="$(_bash-it-pluralize-component "${1}")"
|
||||||
|
file="${BASH_IT}/tmp/cache/${component}"
|
||||||
[[ -f "${file}" ]] || mkdir -p "${file%/*}"
|
[[ -f "${file}" ]] || mkdir -p "${file%/*}"
|
||||||
printf '%s' "${file}"
|
printf '%s' "${file}"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue