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