From b8ee63c67d1be89c9abf9e330b5b63f79328e104 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Tue, 12 Oct 2021 10:58:49 -0700 Subject: [PATCH] lib/utilities: quote SC2295 Doesn't show up on my shellcheck 0.7.2, but does for NoahGorny! --- lib/utilities.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utilities.bash b/lib/utilities.bash index 3ceda5f1..52c48776 100644 --- a/lib/utilities.bash +++ b/lib/utilities.bash @@ -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}" }