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() {
# source user root
rwx_source "${RWX_SELF_USER}"
rwx_main_source "${RWX_SELF_USER}"
# load code cache
rwx_code_load
# set command

View file

@ -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