mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
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.
This commit is contained in:
parent
78d21617af
commit
d43dc2fa37
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue