From d43dc2fa370632f2f700ea096cf18b26b5b1c928 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 28 Jul 2026 22:26:28 -0400 Subject: [PATCH] Fail the xulrunner download on an HTTP error Without -f, curl saves the error page and the download appears to succeed, so a missing build fails later with a confusing "Unrecognized archive format" from tar. --- app/scripts/fetch_xulrunner | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scripts/fetch_xulrunner b/app/scripts/fetch_xulrunner index 7ffae7a187..b48aa9ae68 100755 --- a/app/scripts/fetch_xulrunner +++ b/app/scripts/fetch_xulrunner @@ -567,7 +567,7 @@ if [ $BUILD_MAC == 1 ]; then echo "Using Firefox $GECKO_VERSION.app.zip" unzip "Firefox $GECKO_VERSION.app.zip" else - curl -o Firefox.dmg "$DOWNLOAD_URL/mac/en-US/Firefox%20$GECKO_VERSION.dmg" + curl -fo Firefox.dmg "$DOWNLOAD_URL/mac/en-US/Firefox%20$GECKO_VERSION.dmg" set +e hdiutil detach -quiet /Volumes/Firefox 2>/dev/null set -e @@ -653,7 +653,7 @@ if [ $BUILD_WIN == 1 ]; then else moz_arch=$arch fi - curl -O "$DOWNLOAD_URL/$moz_arch/en-US/Firefox%20Setup%20$GECKO_VERSION.exe" + curl -fO "$DOWNLOAD_URL/$moz_arch/en-US/Firefox%20Setup%20$GECKO_VERSION.exe" # Store local copy of unmodified app cp "Firefox%20Setup%20$GECKO_VERSION.exe" "$archived_file" fi @@ -785,7 +785,7 @@ if [ $BUILD_LINUX == 1 ]; then else moz_arch=$arch fi - curl -O "$DOWNLOAD_URL/linux-$moz_arch/en-US/firefox-$GECKO_VERSION.tar.xz" + curl -fO "$DOWNLOAD_URL/linux-$moz_arch/en-US/firefox-$GECKO_VERSION.tar.xz" # Store local copy of unmodified app cp "firefox-$GECKO_VERSION.tar.xz" "$archived_file" fi