main/source

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

View file

@ -206,7 +206,7 @@ rwx_code_parse() {
rwx_code_main() { rwx_code_main() {
# source user root # source user root
rwx_source "${RWX_SELF_USER}" rwx_main_source "${RWX_SELF_USER}"
# load code cache # load code cache
rwx_code_load rwx_code_load
# set command # set command

View file

@ -83,8 +83,8 @@ _rwx_main_log() {
# │ main │ source │ # │ main │ source │
# ╰──────┴────────╯ # ╰──────┴────────╯
# source code from file path # source code from root path but file
rwx_source() { rwx_main_source() {
local root="${1}" local root="${1}"
[ -d "${root}" ] || [ -d "${root}" ] ||
return 1 return 1
@ -137,7 +137,7 @@ rwx_main_main() {
# cache main # cache main
rwx_cache "${RWX_ROOT_SYSTEM}" "${RWX_MAIN_NAME}" rwx_cache "${RWX_ROOT_SYSTEM}" "${RWX_MAIN_NAME}"
# source system root # 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}" _rwx_main_log "Not a directory: ${RWX_ROOT_SYSTEM}"
return 1 return 1
fi fi