Skip to content

Commit

Permalink
#24 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jan 25, 2024
1 parent 50e6be1 commit 5abb2b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -44,4 +44,4 @@ inputs:
packages:
description: 'The space-separated list of LaTeX packages to install first'
required: false
default: ' '
default: ''
9 changes: 4 additions & 5 deletions entry.sh
Expand Up @@ -30,13 +30,12 @@ cd "${INPUT_PATH-.}"
tlmgr option repository ctan
tlmgr --verify-repo=none update --self

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

if [ -n "${INPUT_DEPENDS}" ]; then
names=$(cut -d' ' -f2 "${INPUT_DEPENDS}" | uniq)
if [ -n "${names}" ]; then
tlmgr --verify-repo=none install ${names}
tlmgr --verify-repo=none update ${names}
fi
Expand Down

0 comments on commit 5abb2b2

Please sign in to comment.