Always use IFS= for read

This commit is contained in:
Taiki Endo
2026-05-15 10:56:59 +09:00
parent 8b48705aa3
commit b1b1cbb6bf
+2 -2
View File
@@ -478,7 +478,7 @@ fi
tool="${INPUT_TOOL:-}" tool="${INPUT_TOOL:-}"
tools=() tools=()
if [[ -n "${tool}" ]]; then if [[ -n "${tool}" ]]; then
while read -rd,; do while IFS= read -rd,; do
tools+=("${REPLY}") tools+=("${REPLY}")
done < <(normalize_comma_or_space_separated "${tool}") done < <(normalize_comma_or_space_separated "${tool}")
fi fi
@@ -786,7 +786,7 @@ for tool in "${tools[@]}"; do
if [[ -n "${additional}" ]]; then if [[ -n "${additional}" ]]; then
component='' component=''
target='' target=''
while read -rd+; do while IFS= read -rd+; do
case "${REPLY}" in case "${REPLY}" in
# Last checked: nightly-2026-05-03 # Last checked: nightly-2026-05-03
# rustup component list # rustup component list