From 189b4f521ddca617b25a0a67ab0ec20f3f81c425 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 9 Jul 2025 16:13:16 +0200 Subject: [PATCH] main/module --- sh/core/code.sh | 2 +- sh/main.sh | 6 +++--- sh/test.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sh/core/code.sh b/sh/core/code.sh index 3d65f5c..a5037ec 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -8,7 +8,7 @@ # TODO variablize # path to the entrypoint main file of the project -RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}" +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}" diff --git a/sh/main.sh b/sh/main.sh index 6a3a3d3..e648c1a 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -10,9 +10,9 @@ # extension of shell modules RWX_MAIN_EXTENSION="sh" - # name of the entrypoint module -RWX_MAIN_NAME="main" +RWX_MAIN_MODULE="main" + # name of the project itself RWX_SELF_NAME="rwx" @@ -80,7 +80,7 @@ rwx_main_main() { # find & source modules modules="$(rwx_main_find "${RWX_ROOT_SYSTEM}")" while IFS= read -r module; do - if [ "${module}" != "${RWX_MAIN_NAME}" ]; then + if [ "${module}" != "${RWX_MAIN_MODULE}" ]; then # shellcheck disable=SC1090 . "${RWX_ROOT_SYSTEM}/${module}.${RWX_MAIN_EXTENSION}" fi diff --git a/sh/test.sh b/sh/test.sh index 1b082b5..1ef31ec 100644 --- a/sh/test.sh +++ b/sh/test.sh @@ -41,7 +41,7 @@ rwx_test_doc() { "main" \ "alias/git" \ \ - "RWX_MAIN_NAME" \ + "RWX_MAIN_MODULE" \ \ "_rwx_code" \ \