Changed enable all functionality to call recursive enable
parent
74b15b6385
commit
feb05b279b
|
|
@ -308,10 +308,8 @@ _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 $f)
|
plugin=$(basename -s .$file_type.bash $f)
|
||||||
if [ ! -h $BASH_IT/$subdirectory/enabled/$plugin ]; then
|
_enable-thing $subdirectory $file_type $plugin $load_priority
|
||||||
ln -s ../available/$plugin $BASH_IT/$subdirectory/enabled/$load_priority$BASH_IT_LOAD_PRIORITY_SEPARATOR$plugin
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
typeset plugin=$(command ls $BASH_IT/$subdirectory/available/$file_entity.*bash 2>/dev/null | head -1)
|
typeset plugin=$(command ls $BASH_IT/$subdirectory/available/$file_entity.*bash 2>/dev/null | head -1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue