parent
09bf59c3ba
commit
00005aa03d
2 changed files with 6 additions and 1 deletions
|
@ -223,6 +223,9 @@ rwx_code_parse() {
|
||||||
# ╰──────┴──────╯
|
# ╰──────┴──────╯
|
||||||
|
|
||||||
rwx_code_main() {
|
rwx_code_main() {
|
||||||
|
local code="${1}"
|
||||||
|
shift
|
||||||
|
_rwx_code="${code}"
|
||||||
# source user root
|
# source user root
|
||||||
rwx_main_source "${RWX_SELF_USER}"
|
rwx_main_source "${RWX_SELF_USER}"
|
||||||
# load code cache
|
# load code cache
|
||||||
|
|
|
@ -125,13 +125,15 @@ ${text}
|
||||||
# run initial steps
|
# run initial steps
|
||||||
#< core/code
|
#< core/code
|
||||||
rwx_main_main() {
|
rwx_main_main() {
|
||||||
|
local code
|
||||||
# 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}"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
code="${_rwx_code}"
|
||||||
# run code main function
|
# run code main function
|
||||||
rwx_code_main "${@}"
|
rwx_code_main "${code}" "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# run main function
|
# run main function
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue