source/root

This commit is contained in:
Marc Beninca 2025-07-03 18:14:56 +02:00
parent 428b3dbe4d
commit 706847f746
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -59,18 +59,18 @@ rwx_main() {
# source code from file path # source code from file path
rwx_source() { rwx_source() {
local path="${1}" local root="${1}"
[ -d "${path}" ] || [ -d "${root}" ] ||
return 1 return 1
local count module local count module
count=0 count=0
__rwx_log "" \ __rwx_log "" \
". ${path}" ". ${root}"
rwx_ifs_set rwx_ifs_set
for module in $(rwx_find_shell "${path}" "${RWX_MAIN_NAME}"); do for module in $(rwx_find_shell "${root}" "${RWX_MAIN_NAME}"); do
count=$((count + 1)) count=$((count + 1))
__rwx_log "$(printf "%02d" "${count}") ${module%.sh}" __rwx_log "$(printf "%02d" "${count}") ${module%.sh}"
module="${path}/${module}" module="${root}/${module}"
# shellcheck disable=SC1090 # shellcheck disable=SC1090
. "${module}" . "${module}"
done done