main/name,path
This commit is contained in:
parent
8260e4e870
commit
dc301be51d
1 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
# │ constants │
|
# │ constants │
|
||||||
# ╰───────────╯
|
# ╰───────────╯
|
||||||
|
|
||||||
RWX_MAIN_FILE_NAME="main.sh"
|
RWX_MAIN_NAME="main.sh"
|
||||||
RWX_NAME="rwx"
|
RWX_NAME="rwx"
|
||||||
|
|
||||||
RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_NAME}"
|
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_ROOT_USER="${HOME}/${RWX_NAME}"
|
||||||
RWX_SHELL="$(cat "/proc/${$}/comm")"
|
RWX_SHELL="$(cat "/proc/${$}/comm")"
|
||||||
|
|
||||||
|
RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}"
|
||||||
|
|
||||||
# ╭──────────╮
|
# ╭──────────╮
|
||||||
# │ internal │
|
# │ internal │
|
||||||
# ╰──────────╯
|
# ╰──────────╯
|
||||||
|
@ -100,7 +102,7 @@ rwx_main_source() {
|
||||||
[ -d "${path}" ] ||
|
[ -d "${path}" ] ||
|
||||||
return 1
|
return 1
|
||||||
local cmd count module modules
|
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
|
rwx_ifs_set
|
||||||
count=0
|
count=0
|
||||||
_rwx_main_log "" \
|
_rwx_main_log "" \
|
||||||
|
|
Loading…
Reference in a new issue