install/while

This commit is contained in:
Marc Beninca 2025-07-07 04:02:44 +02:00
parent e57b963f25
commit 47ff6043d5
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -39,11 +39,13 @@ rwx_code_install() {
file="${root}/${name}"
rwx_remove "${file}"
rwx_link "${file}" "${RWX_MAIN_PATH}"
for command in $(rwx_self_commands); do
while IFS= read -r command; do
file="${root}/${command}"
rwx_remove "${file}"
rwx_link "${file}" "${name}"
done
done <<EOF
${_rwx_code_aliases}
EOF
# sh
file="${target}/etc/profile.d/${RWX_SELF_NAME}.sh"
rwx_remove "${file}"