From e060c189498cb86282fdf1b705531baf998bb86a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 9 Jul 2025 02:04:14 +0200 Subject: [PATCH] simplify --- sh/core/code.sh | 2 +- sh/lint/shellcheck.sh | 2 +- sh/main.sh | 42 ++++++++++++++++++++---------------------- sh/self.sh | 2 +- 4 files changed, 23 insertions(+), 25 deletions(-) diff --git a/sh/core/code.sh b/sh/core/code.sh index 393e5d5..18860ab 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_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}.sh" # user root directory of the project RWX_SELF_USER="${HOME}/${RWX_SELF_NAME}" diff --git a/sh/lint/shellcheck.sh b/sh/lint/shellcheck.sh index c6aabb6..3bdfa07 100644 --- a/sh/lint/shellcheck.sh +++ b/sh/lint/shellcheck.sh @@ -4,7 +4,7 @@ rwx_shellcheck() { file="$(mktemp)" modules="$(rwx_main_find "${root}")" while IFS= read -r module; do - path="${root}/${module}" + path="${root}/${module}.sh" echo ". \"${path}\"" >>"${file}" done <