Skip to content

Commit

Permalink
bash array
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Feb 17, 2024
1 parent efc196f commit c016345
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ cd "${GITHUB_WORKSPACE-/w}"
tlmgr option repository ctan
tlmgr --verify-repo=none update --self

names=${INPUT_PACKAGES}
names=( "${INPUT_PACKAGES}" )
if [ -n "${INPUT_DEPENDS}" ]; then
names="${names} $(cut -d' ' -f2 "${INPUT_DEPENDS}" | uniq)"
names=( "$(cut -d' ' -f2 "${INPUT_DEPENDS}" | uniq)" )
fi

if [ -n "${names}" ]; then
tlmgr --verify-repo=none install ${names}
tlmgr --verify-repo=none --no-auto-remove update ${names} || echo 'UPDATE FAILED'
tlmgr --verify-repo=none install "${names[@]}"
tlmgr --verify-repo=none --no-auto-remove update "${names[@]}" || echo 'UPDATE FAILED'
fi

cd "${INPUT_PATH-.}"
Expand Down

0 comments on commit c016345

Please sign in to comment.