feat: Add config loading
This commit is contained in:
parent
1e124a6aa8
commit
323e5d9fc8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user