−ifs
This commit is contained in:
parent
80632463f6
commit
5346091e7b
1 changed files with 5 additions and 4 deletions
|
@ -93,16 +93,17 @@ rwx_source() {
|
||||||
count=0
|
count=0
|
||||||
__rwx_log "" \
|
__rwx_log "" \
|
||||||
". ${root}"
|
". ${root}"
|
||||||
rwx_ifs_set
|
local modules="$(rwx_find_shell "${root}" "${file}")"
|
||||||
for module in $(rwx_find_shell "${root}" "${file}"); do
|
while IFS= read -r module; do
|
||||||
count=$((count + 1))
|
count=$((count + 1))
|
||||||
__rwx_log "$(printf "%02d" "${count}") ${module%.sh}"
|
__rwx_log "$(printf "%02d" "${count}") ${module%.sh}"
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
. "${root}/${module}"
|
. "${root}/${module}"
|
||||||
# cache code
|
# cache code
|
||||||
rwx_cache "${root}" "${module}"
|
rwx_cache "${root}" "${module}"
|
||||||
done
|
done <<EOF
|
||||||
rwx_ifs_unset
|
${modules}
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# ╭──────┬─────╮
|
# ╭──────┬─────╮
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue