−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
|
||||
text="#! /usr/bin/env sh
|
||||
"
|
||||
rwx_ifs_set
|
||||
for file in $(rwx_self_subset "${@}"); do
|
||||
local files="$(rwx_self_subset "${@}")"
|
||||
while IFS= read -r file; do
|
||||
text="${text}
|
||||
$(cat "${RWX_ROOT_SYSTEM}/${file}")
|
||||
"
|
||||
done
|
||||
rwx_ifs_unset
|
||||
done <<EOF
|
||||
${files}
|
||||
EOF
|
||||
rwx_file_write "${target}" "${text}"
|
||||
rwx_shfmt "${target}"
|
||||
rwx_shellcheck_file "${target}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue