main/cache
This commit is contained in:
parent
8847877290
commit
576d0c981c
2 changed files with 4 additions and 4 deletions
|
@ -100,7 +100,7 @@ rwx_main_source() {
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
. "${root}/${module}"
|
. "${root}/${module}"
|
||||||
# cache code
|
# cache code
|
||||||
rwx_cache "${root}" "${module}"
|
rwx_main_cache "${root}" "${module}"
|
||||||
done <<EOF
|
done <<EOF
|
||||||
${modules}
|
${modules}
|
||||||
EOF
|
EOF
|
||||||
|
@ -113,7 +113,7 @@ EOF
|
||||||
# cache source code of a module
|
# cache source code of a module
|
||||||
# inside a global code variable
|
# inside a global code variable
|
||||||
#| cat
|
#| cat
|
||||||
rwx_cache() {
|
rwx_main_cache() {
|
||||||
local root="${1}"
|
local root="${1}"
|
||||||
local module="${2}"
|
local module="${2}"
|
||||||
local name="${module%.sh}"
|
local name="${module%.sh}"
|
||||||
|
@ -135,7 +135,7 @@ ${text}
|
||||||
#< code
|
#< code
|
||||||
rwx_main_main() {
|
rwx_main_main() {
|
||||||
# cache main
|
# cache main
|
||||||
rwx_cache "${RWX_ROOT_SYSTEM}" "${RWX_MAIN_NAME}"
|
rwx_main_cache "${RWX_ROOT_SYSTEM}" "${RWX_MAIN_NAME}"
|
||||||
# source system root
|
# source system root
|
||||||
if ! rwx_main_source "${RWX_ROOT_SYSTEM}" "${RWX_MAIN_NAME}"; then
|
if ! rwx_main_source "${RWX_ROOT_SYSTEM}" "${RWX_MAIN_NAME}"; then
|
||||||
_rwx_main_log "Not a directory: ${RWX_ROOT_SYSTEM}"
|
_rwx_main_log "Not a directory: ${RWX_ROOT_SYSTEM}"
|
||||||
|
|
|
@ -44,7 +44,7 @@ rwx_test_doc() {
|
||||||
\
|
\
|
||||||
"_rwx_code" \
|
"_rwx_code" \
|
||||||
\
|
\
|
||||||
"rwx_cache" \
|
"rwx_main_cache" \
|
||||||
\
|
\
|
||||||
"alias/batcat" \
|
"alias/batcat" \
|
||||||
"b" \
|
"b" \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue