Skip to content

Commit

Permalink
Fix TeXLive install for Alpine on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
tarleb committed May 3, 2024
1 parent 0b49f1a commit 3e02c1e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
# Build and publish: configure build via commit message
branches:
- master
- texlive-alpine
paths-ignore:
- '.dockerignore'
- '.github/FUNDING.yml'
Expand Down
1 change: 1 addition & 0 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ FROM alpine-core as alpine-latex

# NOTE: to maintainers, please keep this listing alphabetical.
RUN apk --no-cache add \
curl \
fontconfig \
freetype \
gnupg \
Expand Down
6 changes: 3 additions & 3 deletions common/latex/install-texlive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ if [ "$tlversion" = "$default_version" ]; then
# always use the mirror URL, we'd run into problems whenever we get
# installer and signatures from different mirrors that are not 100%
# in sync.
installer_url=$(wget --quiet --output-document=/dev/null \
installer_url=$(wget -4 --quiet --output-document=/dev/null \
--server-response \
http://mirror.ctan.org/systems/texlive/tlnet/ \
2>&1 | \
sed -ne 's/.*Location: \(.*\)$/\1/p' | tail -1)
sed -ne 's/.*Location: \(.*\)$/\1/p' | head -n 1)
repository=
else
installer_url="\
Expand All @@ -30,7 +30,7 @@ printf 'installer URL: %s\n' "${installer_url}"
printf 'repository: %s\n' "${repository}"

# Download the install-tl perl script.
wget --no-verbose \
wget -4 --no-verbose \
"$installer_url/$installer_archive" \
"$installer_url/$installer_archive".sha512 \
"$installer_url/$installer_archive".sha512.asc \
Expand Down

0 comments on commit 3e02c1e

Please sign in to comment.