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_self_install() {
|
||||
local target="${1}"
|
||||
[ -n "${target}" ] || return
|
||||
local command file root
|
||||
# code
|
||||
root="${target}${RWX_ROOT_SYSTEM}"
|
||||
rwx_remove "${root}"
|
||||
cp --recursive "${RWX_ROOT_SYSTEM}" "${root}"
|
||||
if [ -n "${target}" ]; then
|
||||
root="${target}${RWX_ROOT_SYSTEM}"
|
||||
rwx_remove "${root}"
|
||||
cp --recursive "${RWX_ROOT_SYSTEM}" "${root}"
|
||||
fi
|
||||
# commands
|
||||
root="${target}/usr/local/bin"
|
||||
for command in $(rwx_self_commands); do
|
||||
|
|
Loading…
Reference in a new issue