This commit is contained in:
Marc Beninca 2025-07-09 02:10:12 +02:00
parent e060c18949
commit 0593181f10
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -34,14 +34,13 @@ RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_SELF_NAME}"
#| sort #| sort
rwx_main_find() { rwx_main_find() {
local root="${1}" local root="${1}"
local file="${2}"
find \ find \
"${root}" \ "${root}" \
-name "*.sh" \ -name "*.sh" \
-type "f" \ -type "f" \
-printf "%P\n" | -printf "%P\n" |
sed "s|\\.[^.]*\$||" | sed "s|\\.[^.]*\$||" |
sort sort
} }
# ╭──────┬───────╮ # ╭──────┬───────╮
@ -108,13 +107,12 @@ EOF
rwx_main_cache() { rwx_main_cache() {
local root="${1}" local root="${1}"
local module="${2}" local module="${2}"
local name="${module}"
local path="${root}/${module}.sh" local path="${root}/${module}.sh"
local text local text
text="$(cat "${path}")" text="$(cat "${path}")"
# all source code # all source code
_rwx_code="${_rwx_code}\ _rwx_code="${_rwx_code}\
#. ${name} #. ${module}
${text} ${text}
" "
} }