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}"
[ -d "${path}" ] ||
return 1
local count module modules
modules="$(rwx_find_shell "${path}" "${RWX_MAIN_NAME}")"
rwx_ifs_set
local count module
count=0
__rwx_log "" \
". ${path}"
for module in ${modules}; do
rwx_ifs_set
for module in $(rwx_find_shell "${path}" "${RWX_MAIN_NAME}"); do
count=$((count + 1))
__rwx_log "$(printf "%02d" "${count}") ${module%.sh}"
module="${path}/${module}"