Skip to content

Commit

Permalink
read -r
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Feb 19, 2024
1 parent e22efb3 commit e7977c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions entry.sh
Expand Up @@ -30,9 +30,9 @@ cd "${GITHUB_WORKSPACE-/w}"
tlmgr option repository ctan
tlmgr --verify-repo=none update --self

read -a packages < <(echo "${INPUT_PACKAGES}")
read -r -a packages < <(echo "${INPUT_PACKAGES}")
if [ -n "${INPUT_DEPENDS}" ]; then
read -a packages < <(cut -d' ' -f2 "${INPUT_DEPENDS}" | uniq)
read -r -a packages < <(cut -d' ' -f2 "${INPUT_DEPENDS}" | uniq)
fi

if [ ! "${#packages[@]}" -eq 0 ]; then
Expand All @@ -42,5 +42,5 @@ fi

cd "${INPUT_PATH-.}"
ls -al
read -a opts < <(echo "${INPUT_OPTS}")
read -r -a opts < <(echo "${INPUT_OPTS}")
${INPUT_CMD} "${opts[@]}"

0 comments on commit e7977c7

Please sign in to comment.