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
rwx_source() {
local path="${1}"
[ -d "${path}" ] ||
local root="${1}"
[ -d "${root}" ] ||
return 1
local count module
count=0
__rwx_log "" \
". ${path}"
". ${root}"
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))
__rwx_log "$(printf "%02d" "${count}") ${module%.sh}"
module="${path}/${module}"
module="${root}/${module}"
# shellcheck disable=SC1090
. "${module}"
done