feat: Add config loading

This commit is contained in:
ge 2022-05-15 08:34:48 +03:00
parent 1e124a6aa8
commit 323e5d9fc8

View File

@ -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