Skip to content

Commit

Permalink
read <<<
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Feb 19, 2024
1 parent c3d6388 commit 04d2f02
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ cd "${GITHUB_WORKSPACE-/w}"
tlmgr option repository ctan
tlmgr --verify-repo=none update --self

packages=()
while IFS= read -r p; do
packages+=( "${p}" )
done < <( echo "${INPUT_PACKAGES}" )

read -a packages <<< "${INPUT_PACKAGES}"
if [ -n "${INPUT_DEPENDS}" ]; then
while IFS= read -r p; do
packages+=( "${p}" )
Expand All @@ -49,8 +45,5 @@ fi
cd "${INPUT_PATH-.}"
ls -al

opts=()
while IFS= read -r o; do
opts+=( "${o}" )
done < <( echo "${INPUT_OPTS}" )
read -a opts <<< "${INPUT_OPTS}"
${INPUT_CMD} "${opts[@]}"

0 comments on commit 04d2f02

Please sign in to comment.