From 1f2d3f4a2cd06c718fd54d759f6695589d311244 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Tue, 21 Sep 2021 23:24:31 -0700 Subject: [PATCH] lib/helpers: fix `_bash-it-get-component-name-from-path()` Use `${BASH_IT_LOAD_PRIORITY_SEPARATOR}` --- lib/utilities.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utilities.bash b/lib/utilities.bash index af4f14a8..84fa4d96 100644 --- a/lib/utilities.bash +++ b/lib/utilities.bash @@ -7,10 +7,11 @@ ########################################################################### function _bash-it-get-component-name-from-path() { + local filename # filename without path filename="${1##*/}" # filename without path or priority - filename="${filename##*---}" + filename="${filename##*${BASH_IT_LOAD_PRIORITY_SEPARATOR?}}" # filename without path, priority or extension echo "${filename%.*.bash}" }