From df745bac14b9b724bfcb3ea0e58fc7b37c20594e Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Thu, 3 Sep 2026 16:38:28 -0400 Subject: [PATCH] fix: disallow redirects for ReadTheDocs icon fetch Update `readthedocs_build.sh` to add `--max-redirect=0` to both logo `wget` calls. This makes the build fail fast if GitHub starts redirecting those asset URLs, avoiding silently downloading unexpected content. --- readthedocs_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readthedocs_build.sh b/readthedocs_build.sh index b2092d8..52d374d 100644 --- a/readthedocs_build.sh +++ b/readthedocs_build.sh @@ -21,9 +21,9 @@ function setup_conda_env { function install_icons { echo "Downloading LizardByte graphics" - wget "https://raw.githubusercontent.com/LizardByte/.github/master/branding/logos/favicon.ico" \ + wget --max-redirect=0 "https://raw.githubusercontent.com/LizardByte/.github/master/branding/logos/favicon.ico" \ -O "${READTHEDOCS_OUTPUT}lizardbyte.ico" - wget "https://raw.githubusercontent.com/LizardByte/.github/master/branding/logos/logo-128x128.png" \ + wget --max-redirect=0 "https://raw.githubusercontent.com/LizardByte/.github/master/branding/logos/logo-128x128.png" \ -O "${READTHEDOCS_OUTPUT}lizardbyte.png" return 0 }