Fixed basename usage for enable all
parent
d34b820cec
commit
4e16dfde56
|
|
@ -316,7 +316,7 @@ _enable-thing ()
|
||||||
typeset f $file_type
|
typeset f $file_type
|
||||||
for f in $BASH_IT/$subdirectory/available/*.bash
|
for f in $BASH_IT/$subdirectory/available/*.bash
|
||||||
do
|
do
|
||||||
plugin=$(basename -s .$file_type.bash $f)
|
plugin=$(basename $f .$file_type.bash)
|
||||||
_enable-thing $subdirectory $file_type $plugin $load_priority
|
_enable-thing $subdirectory $file_type $plugin $load_priority
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,7 @@ load ../../lib/helpers
|
||||||
|
|
||||||
function __setup_plugin_tests {
|
function __setup_plugin_tests {
|
||||||
mkdir -p $BASH_IT/plugins
|
mkdir -p $BASH_IT/plugins
|
||||||
|
|
||||||
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
lib_directory="$(cd "$(dirname "$0")" && pwd)"
|
||||||
pwd
|
|
||||||
echo "$lib_directory"
|
|
||||||
ls -als "$lib_directory/../.."
|
|
||||||
cp -r $lib_directory/../../plugins/available $BASH_IT/plugins
|
cp -r $lib_directory/../../plugins/available $BASH_IT/plugins
|
||||||
mkdir -p $BASH_IT/plugins/enabled
|
mkdir -p $BASH_IT/plugins/enabled
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue