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