self/user
This commit is contained in:
parent
dc1fdbace7
commit
05e5d00a95
1 changed files with 2 additions and 5 deletions
|
@ -14,13 +14,10 @@ RWX_SELF_COMMAND="_${RWX_SELF_NAME}_cmd_"
|
|||
# ╰───────────╯
|
||||
|
||||
RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_SELF_NAME}"
|
||||
RWX_SELF_USER="${HOME}/${RWX_SELF_NAME}"
|
||||
|
||||
RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}"
|
||||
|
||||
rwx_self_user() {
|
||||
echo "${HOME}/${RWX_SELF_NAME}"
|
||||
}
|
||||
|
||||
rwx_shell() {
|
||||
cat "/proc/${$}/comm"
|
||||
}
|
||||
|
@ -129,7 +126,7 @@ rwx_main() {
|
|||
return 1
|
||||
fi
|
||||
# user root
|
||||
rwx_source "$(rwx_self_user)"
|
||||
rwx_source "${RWX_SELF_USER}"
|
||||
#
|
||||
case "${0}" in
|
||||
"bash" | \
|
||||
|
|
Loading…
Reference in a new issue