mirror of
https://github.com/taiki-e/install-action
synced 2026-09-14 20:13:27 +00:00
Always use IFS= for read
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user