main/name,path

This commit is contained in:
Marc Beninca 2024-11-29 22:26:26 +01:00
parent 8260e4e870
commit dc301be51d
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -2,7 +2,7 @@
# │ constants │
# ╰───────────╯
RWX_MAIN_FILE_NAME="main.sh"
RWX_MAIN_NAME="main.sh"
RWX_NAME="rwx"
RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_NAME}"
@ -14,6 +14,8 @@ RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_NAME}"
RWX_ROOT_USER="${HOME}/${RWX_NAME}"
RWX_SHELL="$(cat "/proc/${$}/comm")"
RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}"
# ╭──────────╮
# │ internal │
# ╰──────────╯
@ -100,7 +102,7 @@ rwx_main_source() {
[ -d "${path}" ] ||
return 1
local cmd count module modules
modules="$(rwx_find_sh "${path}" "${RWX_MAIN_FILE_NAME}")"
modules="$(rwx_find_sh "${path}" "${RWX_MAIN_NAME}")"
rwx_ifs_set
count=0
_rwx_main_log "" \