summary refs log tree commit diff
path: root/pkgs/games/factorio
diff options
context:
space:
mode:
authorEric Litak <elitak@gmail.com>2017-07-16 06:09:57 -0700
committerEric Litak <elitak@gmail.com>2017-07-16 06:11:09 -0700
commit9953a798fba84a558a3dd9c5b013c95698108e1f (patch)
treeff36bfc2e1f3362d0bafd5ede36437d70294a62b /pkgs/games/factorio
parentfa74d99e429411ab25e82d4d526a46d34603af2e (diff)
downloadnixpkgs-9953a798fba84a558a3dd9c5b013c95698108e1f.tar
nixpkgs-9953a798fba84a558a3dd9c5b013c95698108e1f.tar.gz
nixpkgs-9953a798fba84a558a3dd9c5b013c95698108e1f.tar.bz2
nixpkgs-9953a798fba84a558a3dd9c5b013c95698108e1f.tar.lz
nixpkgs-9953a798fba84a558a3dd9c5b013c95698108e1f.tar.xz
nixpkgs-9953a798fba84a558a3dd9c5b013c95698108e1f.tar.zst
nixpkgs-9953a798fba84a558a3dd9c5b013c95698108e1f.zip
factorio: authenticatedFetch now handles 404 properly
Diffstat (limited to 'pkgs/games/factorio')
-rw-r--r--pkgs/games/factorio/fetch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/games/factorio/fetch.sh b/pkgs/games/factorio/fetch.sh
index 30d9c9fdefe..312dc9b6d61 100644
--- a/pkgs/games/factorio/fetch.sh
+++ b/pkgs/games/factorio/fetch.sh
@@ -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