echoes
This commit is contained in:
parent
6603c88198
commit
216fe057c9
1 changed files with 3 additions and 3 deletions
|
@ -19,21 +19,21 @@ main_import_modules() {
|
||||||
local ifs module modules path root
|
local ifs module modules path root
|
||||||
path="$(realpath --canonicalize-existing "${file}")"
|
path="$(realpath --canonicalize-existing "${file}")"
|
||||||
root="$(dirname "${path}")"
|
root="$(dirname "${path}")"
|
||||||
|
echo
|
||||||
|
echo "${root}"
|
||||||
modules="$(find "${root}" -type "f" -name "*.sh" -printf "%P
|
modules="$(find "${root}" -type "f" -name "*.sh" -printf "%P
|
||||||
" | sort)"
|
" | sort)"
|
||||||
ifs="${IFS}"
|
ifs="${IFS}"
|
||||||
IFS="
|
IFS="
|
||||||
"
|
"
|
||||||
for module in ${modules}; do
|
for module in ${modules}; do
|
||||||
|
echo "${module%.sh}"
|
||||||
module="${root}/${module}"
|
module="${root}/${module}"
|
||||||
if [ "${module}" != "${path}" ]; then
|
if [ "${module}" != "${path}" ]; then
|
||||||
. "${module}"
|
. "${module}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
IFS="${ifs}"
|
IFS="${ifs}"
|
||||||
log_info
|
|
||||||
log_info "${root}"
|
|
||||||
log_info "${modules}"
|
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
log_fatal "No file: ${file}"
|
log_fatal "No file: ${file}"
|
||||||
|
|
Loading…
Reference in a new issue