From 1bf5581936da987248ba708cbeaa08343fd67f4f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 9 Jul 2025 16:15:42 +0200 Subject: [PATCH] main/name --- sh/core/code.sh | 6 +++--- sh/main.sh | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sh/core/code.sh b/sh/core/code.sh index a5037ec..fd943bc 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -10,7 +10,7 @@ # path to the entrypoint main file of the project RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_MODULE}.${RWX_MAIN_EXTENSION}" # user root directory of the project -RWX_SELF_USER="${HOME}/${RWX_SELF_NAME}" +RWX_SELF_USER="${HOME}/${RWX_MAIN_NAME}" # cache of all sourced code modules _rwx_code="" @@ -61,7 +61,7 @@ rwx_code_install() { fi # commands root="${target}/usr/local/bin" - name="${RWX_SELF_NAME}.${RWX_MAIN_EXTENSION}" + name="${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}" file="${root}/${name}" rwx_remove "${file}" rwx_link "${file}" "${RWX_MAIN_PATH}" @@ -73,7 +73,7 @@ rwx_code_install() { ${_rwx_code_commands} EOF # sh - file="${target}/etc/profile.d/${RWX_SELF_NAME}.${RWX_MAIN_EXTENSION}" + file="${target}/etc/profile.d/${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}" rwx_remove "${file}" rwx_file_write "${file}" "\ export ENV=\"${RWX_MAIN_PATH}\" diff --git a/sh/main.sh b/sh/main.sh index e648c1a..7b06423 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -12,9 +12,8 @@ RWX_MAIN_EXTENSION="sh" # name of the entrypoint module RWX_MAIN_MODULE="main" - # name of the project itself -RWX_SELF_NAME="rwx" +RWX_MAIN_NAME="rwx" # ╭──────┬───────────╮ # │ main │ variables │ @@ -22,7 +21,7 @@ RWX_SELF_NAME="rwx" # TODO variablize # system root directory of the project -RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_SELF_NAME}" +RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_MAIN_NAME}" # ╭──────┬──────╮ # │ main │ find │