install/while
This commit is contained in:
parent
e57b963f25
commit
47ff6043d5
1 changed files with 4 additions and 2 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue