From b92c3e13897c154b9f244576d831f633828576f6 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 3 May 2024 21:53:23 +0200 Subject: [PATCH] foo --- alpine/Dockerfile | 1 - common/latex/install-texlive.sh | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 12f1f482..4abf01fe 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -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 \ diff --git a/common/latex/install-texlive.sh b/common/latex/install-texlive.sh index 87362d1a..f576c914 100755 --- a/common/latex/install-texlive.sh +++ b/common/latex/install-texlive.sh @@ -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 @@ -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="\