From 88478772908909d3c803e5156811adbd6aa1479a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 8 Jul 2025 06:59:55 +0200 Subject: [PATCH] main/source --- sh/code.sh | 2 +- sh/main.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sh/code.sh b/sh/code.sh index 4cfeb00..76881b1 100644 --- a/sh/code.sh +++ b/sh/code.sh @@ -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 diff --git a/sh/main.sh b/sh/main.sh index afae042..52033e9 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -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