install/code
This commit is contained in:
parent
3b2f1447f9
commit
da4ec33554
1 changed files with 5 additions and 4 deletions
|
@ -71,12 +71,13 @@ rwx_self_init() {
|
||||||
_rwx_cmd_rwx_install() { rwx_self_install "${@}"; }
|
_rwx_cmd_rwx_install() { rwx_self_install "${@}"; }
|
||||||
rwx_self_install() {
|
rwx_self_install() {
|
||||||
local target="${1}"
|
local target="${1}"
|
||||||
[ -n "${target}" ] || return
|
|
||||||
local command file root
|
local command file root
|
||||||
# code
|
# code
|
||||||
root="${target}${RWX_ROOT_SYSTEM}"
|
if [ -n "${target}" ]; then
|
||||||
rwx_remove "${root}"
|
root="${target}${RWX_ROOT_SYSTEM}"
|
||||||
cp --recursive "${RWX_ROOT_SYSTEM}" "${root}"
|
rwx_remove "${root}"
|
||||||
|
cp --recursive "${RWX_ROOT_SYSTEM}" "${root}"
|
||||||
|
fi
|
||||||
# commands
|
# commands
|
||||||
root="${target}/usr/local/bin"
|
root="${target}/usr/local/bin"
|
||||||
for command in $(rwx_self_commands); do
|
for command in $(rwx_self_commands); do
|
||||||
|
|
Loading…
Reference in a new issue