install/commands

This commit is contained in:
Marc Beninca 2024-12-01 21:37:55 +01:00
parent f588882b1f
commit 0818e81038
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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}"