From 1810eddaf315114d23b771a4e852cbfbf9b6f1dd Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Fri, 15 Sep 2017 08:10:16 +0200 Subject: [PATCH] Using compgen instead of globw --- lib/helpers.bash | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/helpers.bash b/lib/helpers.bash index 5c6ecb00..d6f9477f 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -181,8 +181,7 @@ _bash-it-migrate() { for file_type in "aliases" "plugins" "completion" do - shopt -s nullglob - for f in "${BASH_IT}/$file_type/enabled/"*.bash + for f in `compgen -G "${BASH_IT}/$file_type/enabled/*.bash"` do typeset ff=$(basename $f) @@ -199,7 +198,6 @@ _bash-it-migrate() { $disable_func $component_name $enable_func $component_name done - shopt -u nullglob done }