main/source
This commit is contained in:
parent
be2d6b2913
commit
8847877290
2 changed files with 4 additions and 4 deletions
|
@ -206,7 +206,7 @@ rwx_code_parse() {
|
|||
|
||||
rwx_code_main() {
|
||||
# source user root
|
||||
rwx_source "${RWX_SELF_USER}"
|
||||
rwx_main_source "${RWX_SELF_USER}"
|
||||
# load code cache
|
||||
rwx_code_load
|
||||
# set command
|
||||
|
|
|
@ -83,8 +83,8 @@ _rwx_main_log() {
|
|||
# │ main │ source │
|
||||
# ╰──────┴────────╯
|
||||
|
||||
# source code from file path
|
||||
rwx_source() {
|
||||
# source code from root path but file
|
||||
rwx_main_source() {
|
||||
local root="${1}"
|
||||
[ -d "${root}" ] ||
|
||||
return 1
|
||||
|
@ -137,7 +137,7 @@ rwx_main_main() {
|
|||
# cache main
|
||||
rwx_cache "${RWX_ROOT_SYSTEM}" "${RWX_MAIN_NAME}"
|
||||
# source system root
|
||||
if ! rwx_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}"
|
||||
return 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue