−ifs
This commit is contained in:
parent
465f0ba475
commit
415a59bca7
1 changed files with 5 additions and 4 deletions
|
@ -181,13 +181,14 @@ rwx_self_write() {
|
||||||
local file text
|
local file text
|
||||||
text="#! /usr/bin/env sh
|
text="#! /usr/bin/env sh
|
||||||
"
|
"
|
||||||
rwx_ifs_set
|
local files="$(rwx_self_subset "${@}")"
|
||||||
for file in $(rwx_self_subset "${@}"); do
|
while IFS= read -r file; do
|
||||||
text="${text}
|
text="${text}
|
||||||
$(cat "${RWX_ROOT_SYSTEM}/${file}")
|
$(cat "${RWX_ROOT_SYSTEM}/${file}")
|
||||||
"
|
"
|
||||||
done
|
done <<EOF
|
||||||
rwx_ifs_unset
|
${files}
|
||||||
|
EOF
|
||||||
rwx_file_write "${target}" "${text}"
|
rwx_file_write "${target}" "${text}"
|
||||||
rwx_shfmt "${target}"
|
rwx_shfmt "${target}"
|
||||||
rwx_shellcheck_file "${target}"
|
rwx_shellcheck_file "${target}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue