mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #27422 from elitak/factorio-version
factorio: authenticatedFetch now handles 404 properly
This commit is contained in:
commit
f752b15a64
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ $curl --data-urlencode csrf_token="$csrf" \
|
|||
|
||||
if grep -q 'Location: https://' headers; then
|
||||
# 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
|
||||
else
|
||||
set +x
|
||||
|
|
Loading…
Reference in a new issue