main/cache

This commit is contained in:
Marc Beninca 2025-07-08 07:03:26 +02:00
parent 8847877290
commit 576d0c981c
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 4 additions and 4 deletions

View file

@ -100,7 +100,7 @@ rwx_main_source() {
# shellcheck disable=SC1090
. "${root}/${module}"
# cache code
rwx_cache "${root}" "${module}"
rwx_main_cache "${root}" "${module}"
done <<EOF
${modules}
EOF
@ -113,7 +113,7 @@ EOF
# cache source code of a module
# inside a global code variable
#| cat
rwx_cache() {
rwx_main_cache() {
local root="${1}"
local module="${2}"
local name="${module%.sh}"
@ -135,7 +135,7 @@ ${text}
#< code
rwx_main_main() {
# cache main
rwx_cache "${RWX_ROOT_SYSTEM}" "${RWX_MAIN_NAME}"
rwx_main_cache "${RWX_ROOT_SYSTEM}" "${RWX_MAIN_NAME}"
# source system root
if ! rwx_main_source "${RWX_ROOT_SYSTEM}" "${RWX_MAIN_NAME}"; then
_rwx_main_log "Not a directory: ${RWX_ROOT_SYSTEM}"

View file

@ -44,7 +44,7 @@ rwx_test_doc() {
\
"_rwx_code" \
\
"rwx_cache" \
"rwx_main_cache" \
\
"alias/batcat" \
"b" \