main/root

This commit is contained in:
Marc Beninca 2025-07-09 16:35:11 +02:00
parent 1de1cad1b3
commit 225dd1380b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 13 additions and 14 deletions

View file

@ -21,9 +21,8 @@ RWX_MAIN_PARENT="/usr/local/lib"
# │ main │ variables │
# ╰──────┴───────────╯
# TODO variablize
# system root directory of the project
RWX_ROOT_SYSTEM="${RWX_MAIN_PARENT}/${RWX_MAIN_NAME}"
rwx_main_root="${RWX_MAIN_PARENT}/${RWX_MAIN_NAME}"
# ╭──────┬──────╮
# │ main │ find │
@ -79,11 +78,11 @@ _rwx_main_log() {
rwx_main_main() {
local module modules
# find & source modules
modules="$(rwx_main_find "${RWX_ROOT_SYSTEM}")"
modules="$(rwx_main_find "${rwx_main_root}")"
while IFS= read -r module; do
if [ "${module}" != "${RWX_MAIN_MODULE}" ]; then
# shellcheck disable=SC1090
. "${RWX_ROOT_SYSTEM}/${module}.${RWX_MAIN_EXTENSION}"
. "${rwx_main_root}/${module}.${RWX_MAIN_EXTENSION}"
fi
done <<EOF
${modules}