relative
This commit is contained in:
parent
2a568eeb22
commit
458e4b60f6
1 changed files with 3 additions and 1 deletions
|
@ -19,11 +19,13 @@ main_import_modules() {
|
|||
local ifs module modules path root
|
||||
path="$(realpath --canonicalize-existing "${file}")"
|
||||
root="$(dirname "${path}")"
|
||||
modules="$(find "${root}" -type "f" -name "*.sh" | sort)"
|
||||
modules="$(find "${root}" -type "f" -name "*.sh" -printf "%P
|
||||
" | sort)"
|
||||
ifs="${IFS}"
|
||||
IFS="
|
||||
"
|
||||
for module in ${modules}; do
|
||||
module="${root}/${module}"
|
||||
if [ "${module}" != "${path}" ]; then
|
||||
. "${module}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue