Skip to content

Commit 3adb998

Browse files
committed
lib/helpers: fix _bash-it-get-component-name-from-path()
Use `${BASH_IT_LOAD_PRIORITY_SEPARATOR}`
1 parent 0c3e4e0 commit 3adb998

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/utilities.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
###########################################################################
88

99
function _bash-it-get-component-name-from-path() {
10+
local filename
1011
# filename without path
1112
filename="${1##*/}"
1213
# filename without path or priority
13-
filename="${filename##*---}"
14+
filename="${filename##*${BASH_IT_LOAD_PRIORITY_SEPARATOR?}}"
1415
# filename without path, priority or extension
1516
echo "${filename%.*.bash}"
1617
}

0 commit comments

Comments
 (0)