From feb05b279be9dcf1ba0e87d2eed50cc9544c8f96 Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Wed, 10 May 2017 11:12:04 +0200 Subject: [PATCH] Changed enable all functionality to call recursive enable --- lib/helpers.bash | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/helpers.bash b/lib/helpers.bash index 0f41488f..20186cec 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -308,10 +308,8 @@ _enable-thing () typeset f $file_type for f in $BASH_IT/$subdirectory/available/*.bash do - plugin=$(basename $f) - if [ ! -h $BASH_IT/$subdirectory/enabled/$plugin ]; then - ln -s ../available/$plugin $BASH_IT/$subdirectory/enabled/$load_priority$BASH_IT_LOAD_PRIORITY_SEPARATOR$plugin - fi + plugin=$(basename -s .$file_type.bash $f) + _enable-thing $subdirectory $file_type $plugin $load_priority done else typeset plugin=$(command ls $BASH_IT/$subdirectory/available/$file_entity.*bash 2>/dev/null | head -1)