diff --git a/sh/core/code.sh b/sh/core/code.sh index a11f6cc..af9962f 100644 --- a/sh/core/code.sh +++ b/sh/core/code.sh @@ -6,11 +6,10 @@ # │ code │ variables │ # ╰──────┴───────────╯ -# TODO variablize # path to the entrypoint main file of the project -RWX_MAIN_PATH="${rwx_main_root}/${RWX_MAIN_MODULE}.${RWX_MAIN_EXTENSION}" +rwx_code_main="${rwx_main_root}/${RWX_MAIN_MODULE}.${RWX_MAIN_EXTENSION}" # user root directory of the project -RWX_SELF_USER="${HOME}/${RWX_MAIN_NAME}" +rwx_code_root="${HOME}/${RWX_MAIN_NAME}" # cache of all sourced code modules _rwx_code="" @@ -228,10 +227,10 @@ rwx_code_main() { local modules_main="${1}" local module modules_user # find & source modules - modules_user="$(rwx_main_find "${RWX_SELF_USER}")" + modules_user="$(rwx_main_find "${rwx_code_root}")" while IFS= read -r module; do # shellcheck disable=SC1090 - . "${RWX_SELF_USER}/${module}.${RWX_MAIN_EXTENSION}" + . "${rwx_code_root}/${module}.${RWX_MAIN_EXTENSION}" done <