lib/utilities: quote SC2295

Doesn't show up on my shellcheck 0.7.2, but does for NoahGorny!
This commit is contained in:
John D Pell
2021-10-12 10:58:49 -07:00
parent b986c39040
commit b8ee63c67d

View File

@@ -11,7 +11,7 @@ function _bash-it-get-component-name-from-path() {
# filename without path
filename="${1##*/}"
# filename without path or priority
filename="${filename##*${BASH_IT_LOAD_PRIORITY_SEPARATOR?}}"
filename="${filename##*"${BASH_IT_LOAD_PRIORITY_SEPARATOR?}"}"
# filename without path, priority or extension
echo "${filename%.*.bash}"
}