diff --git a/lib/helpers.bash b/lib/helpers.bash index 11961799..eea442f6 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -316,7 +316,7 @@ _enable-thing () typeset f $file_type for f in $BASH_IT/$subdirectory/available/*.bash do - plugin=$(basename -s .$file_type.bash $f) + plugin=$(basename $f .$file_type.bash) _enable-thing $subdirectory $file_type $plugin $load_priority done else diff --git a/test/lib/helpers.bats b/test/lib/helpers.bats index d29c59b5..934cb261 100644 --- a/test/lib/helpers.bats +++ b/test/lib/helpers.bats @@ -10,11 +10,7 @@ load ../../lib/helpers function __setup_plugin_tests { mkdir -p $BASH_IT/plugins - lib_directory="$(cd "$(dirname "$0")" && pwd)" - pwd - echo "$lib_directory" - ls -als "$lib_directory/../.." cp -r $lib_directory/../../plugins/available $BASH_IT/plugins mkdir -p $BASH_IT/plugins/enabled }