diff --git a/src/bafscript b/src/bafscript index c4a2434..65fecde 100755 --- a/src/bafscript +++ b/src/bafscript @@ -124,8 +124,10 @@ log "Scripts to process (${_count}): ${__args[@]}" for script in "${__args[@]}"; do + # Source scripts source_script "$script" - #. "$__config" # TODO Make it safe! + # Config can ovewrite script functions and variables + [ -n "$__config" ] && . "$__config" echo echo -e "\e[1m==> Script: ${__args[_iter-1]##*/} [$_iter/$_count]\e[0m" | log -p