Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
tarleb committed May 3, 2024
1 parent d7e8da0 commit b92c3e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ FROM pandoc/core:3.1.13-alpine as alpine-latex

# NOTE: to maintainers, please keep this listing alphabetical.
RUN apk --no-cache add \
ca-certificates \
fontconfig \
freetype \
gnupg \
Expand Down
9 changes: 1 addition & 8 deletions common/latex/install-texlive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ default_version=2024
tlversion=${1:-"$default_version"}
installer_archive=install-tl-unx.tar.gz

mirror_response=$(wget --output-document=/dev/null \
--server-response \
http://mirror.ctan.org/systems/texlive/tlnet/ 2>&1)

printf "Mirror response: %s\n" "${mirror_response}"
printf 'Sed result: %s\n' "$(printf '%s' "$mirror_response" | sed -ne 's/.*Location: \(.*\)$/\1/p')"

# Do normal install for the default version.
if [ "$tlversion" = "$default_version" ]; then
# Get the mirror URL from the redirect. Otherwise, if we were to
Expand All @@ -23,7 +16,7 @@ if [ "$tlversion" = "$default_version" ]; then
--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 Down

0 comments on commit b92c3e1

Please sign in to comment.