log modules
This commit is contained in:
parent
ffdc0c74e1
commit
4f043326ee
2 changed files with 2 additions and 3 deletions
|
@ -5,7 +5,7 @@ LOG_LEVEL_INFO=3
|
||||||
LOG_LEVEL_DEBUG=4
|
LOG_LEVEL_DEBUG=4
|
||||||
LOG_LEVEL_TRACE=5
|
LOG_LEVEL_TRACE=5
|
||||||
|
|
||||||
LOG_LEVEL=${LOG_LEVEL_WARNING}
|
LOG_LEVEL=${LOG_LEVEL_WARN}
|
||||||
|
|
||||||
function log_fatal { [ ${LOG_LEVEL} -ge ${LOG_LEVEL_FATAL} ] && echo "${@}" ; }
|
function log_fatal { [ ${LOG_LEVEL} -ge ${LOG_LEVEL_FATAL} ] && echo "${@}" ; }
|
||||||
|
|
||||||
|
|
|
@ -12,11 +12,10 @@ function link_bashrc {
|
||||||
function main_import_modules {
|
function main_import_modules {
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
local modules=($(find "${MAIN_ROOT}" -type 'f' -name '*.sh'))
|
local modules=($(find "${MAIN_ROOT}" -type 'f' -name '*.sh'))
|
||||||
|
log_trace "${modules[@]}"
|
||||||
local module
|
local module
|
||||||
for module in "${modules[@]}" ; do
|
for module in "${modules[@]}" ; do
|
||||||
if [ "${module}" != "${MAIN_FILE}" ] ; then
|
if [ "${module}" != "${MAIN_FILE}" ] ; then
|
||||||
echo
|
|
||||||
echo "${module}"
|
|
||||||
source "${module}"
|
source "${module}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue