From 040243b2b59b7c6b92eaa4c128e6c6f494631d1d Mon Sep 17 00:00:00 2001 From: Cheng XU Date: Wed, 30 Aug 2023 21:25:52 -0700 Subject: [PATCH] fallback to one of ctan mirror --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index e81d15a..c8ae734 100755 --- a/setup.sh +++ b/setup.sh @@ -52,7 +52,7 @@ apk --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing a echo "==> Install TeXLive" mkdir -p /tmp/install-tl cd /tmp/install-tl -MIRROR_URL="$(curl -w "%{redirect_url}" -o /dev/null https://mirror.ctan.org/)" +MIRROR_URL="$(curl -w "%{redirect_url}" -o /dev/null https://mirror.ctan.org/ || echo "https://tug.ctan.org/")" curl -OL "${MIRROR_URL}systems/texlive/tlnet/install-tl-unx.tar.gz" curl -OL "${MIRROR_URL}systems/texlive/tlnet/install-tl-unx.tar.gz.sha512" curl -OL "${MIRROR_URL}systems/texlive/tlnet/install-tl-unx.tar.gz.sha512.asc"