From 4f043326eee68585c6c0a34bd4cc7b2101e3c99b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 14 May 2023 23:24:40 +0200 Subject: [PATCH] log modules --- bash/log.sh | 2 +- bash/main.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bash/log.sh b/bash/log.sh index 1e699b3..f7d325e 100644 --- a/bash/log.sh +++ b/bash/log.sh @@ -5,7 +5,7 @@ LOG_LEVEL_INFO=3 LOG_LEVEL_DEBUG=4 LOG_LEVEL_TRACE=5 -LOG_LEVEL=${LOG_LEVEL_WARNING} +LOG_LEVEL=${LOG_LEVEL_WARN} function log_fatal { [ ${LOG_LEVEL} -ge ${LOG_LEVEL_FATAL} ] && echo "${@}" ; } diff --git a/bash/main.sh b/bash/main.sh index d858f6d..33a3df5 100644 --- a/bash/main.sh +++ b/bash/main.sh @@ -12,11 +12,10 @@ function link_bashrc { function main_import_modules { local IFS=$'\n' local modules=($(find "${MAIN_ROOT}" -type 'f' -name '*.sh')) + log_trace "${modules[@]}" local module for module in "${modules[@]}" ; do if [ "${module}" != "${MAIN_FILE}" ] ; then - echo - echo "${module}" source "${module}" fi done