This commit is contained in:
Marc Beninca 2023-05-14 23:31:26 +02:00
parent 4f043326ee
commit d2eb5dd011

View file

@ -12,13 +12,13 @@ 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
source "${module}" source "${module}"
fi fi
done done
log_trace "${modules[@]}"
} }
# import modules # import modules