From da4ec335548604508b4bcc2dcc2cf7237d9801c1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 12 Jan 2025 17:04:28 +0100 Subject: [PATCH] install/code --- sh/self.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sh/self.sh b/sh/self.sh index e91425b..08ca24f 100644 --- a/sh/self.sh +++ b/sh/self.sh @@ -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