factorio: authenticatedFetch now handles 404 properly

This commit is contained in:
Eric Litak 2017-07-16 06:09:57 -07:00
parent fa74d99e42
commit 9953a798fb

View File

@ -33,7 +33,7 @@ $curl --data-urlencode csrf_token="$csrf" \
if grep -q 'Location: https://' headers; then if grep -q 'Location: https://' headers; then
# Now download. We need --insecure for this, but the sha256 should cover us. # Now download. We need --insecure for this, but the sha256 should cover us.
$curl --insecure --location $url > $out $curl --insecure --location --fail $url > $out || { echo "Login succeeded, but subsequent fetch failed."; exit 1; }
set +x set +x
else else
set +x set +x