From dc301be51d7862726c423ea494aa156dcc606c08 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 29 Nov 2024 22:26:26 +0100 Subject: [PATCH] main/name,path --- sh/main.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index 8403159..088e438 100644 --- a/sh/main.sh +++ b/sh/main.sh @@ -2,7 +2,7 @@ # │ constants │ # ╰───────────╯ -RWX_MAIN_FILE_NAME="main.sh" +RWX_MAIN_NAME="main.sh" RWX_NAME="rwx" RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_NAME}" @@ -14,6 +14,8 @@ RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_NAME}" RWX_ROOT_USER="${HOME}/${RWX_NAME}" RWX_SHELL="$(cat "/proc/${$}/comm")" +RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}" + # ╭──────────╮ # │ internal │ # ╰──────────╯ @@ -100,7 +102,7 @@ rwx_main_source() { [ -d "${path}" ] || return 1 local cmd count module modules - modules="$(rwx_find_sh "${path}" "${RWX_MAIN_FILE_NAME}")" + modules="$(rwx_find_sh "${path}" "${RWX_MAIN_NAME}")" rwx_ifs_set count=0 _rwx_main_log "" \