This commit is contained in:
Marc Beninca 2024-12-02 01:53:34 +01:00
parent 93d1cef6e3
commit 3495d35051
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -95,13 +95,12 @@ rwx_source() {
local path="${1}" local path="${1}"
[ -d "${path}" ] || [ -d "${path}" ] ||
return 1 return 1
local count module modules local count module
modules="$(rwx_find_shell "${path}" "${RWX_MAIN_NAME}")"
rwx_ifs_set
count=0 count=0
__rwx_log "" \ __rwx_log "" \
". ${path}" ". ${path}"
for module in ${modules}; do rwx_ifs_set
for module in $(rwx_find_shell "${path}" "${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="${path}/${module}"