−ifs
This commit is contained in:
parent
15689cb0fe
commit
bb54436398
1 changed files with 4 additions and 2 deletions
|
@ -3,10 +3,12 @@ rwx_shellcheck() {
|
||||||
local file module modules path
|
local file module modules path
|
||||||
file="$(mktemp)"
|
file="$(mktemp)"
|
||||||
modules="$(rwx_find_shell "${root}")"
|
modules="$(rwx_find_shell "${root}")"
|
||||||
printf "%s\n" "${modules}" | while IFS= read -r module; do
|
while IFS= read -r module; do
|
||||||
path="${root}/${module}"
|
path="${root}/${module}"
|
||||||
echo ". \"${path}\"" >>"${file}"
|
echo ". \"${path}\"" >>"${file}"
|
||||||
done
|
done <<EOF
|
||||||
|
${modules}
|
||||||
|
EOF
|
||||||
rwx_shellcheck_file "${file}"
|
rwx_shellcheck_file "${file}"
|
||||||
rwx_remove "${file}"
|
rwx_remove "${file}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue