install/commands
This commit is contained in:
parent
f588882b1f
commit
0818e81038
1 changed files with 8 additions and 1 deletions
|
@ -27,7 +27,14 @@ rwx_self_help() {
|
|||
|
||||
rwx_self_install() {
|
||||
local target="${1}"
|
||||
local file
|
||||
local command file
|
||||
# commands
|
||||
local root="${target}/usr/local/bin"
|
||||
for command in $(rwx_self_commands); do
|
||||
file="${root}/${command}"
|
||||
rwx_remove "${file}"
|
||||
rwx_link "${file}" "${RWX_MAIN_PATH}"
|
||||
done
|
||||
# sh
|
||||
file="${target}/etc/profile.d/${RWX_SELF_NAME}.sh"
|
||||
rwx_remove "${file}"
|
||||
|
|
Loading…
Reference in a new issue