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
|
||||
. "${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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue