From 9953a798fba84a558a3dd9c5b013c95698108e1f Mon Sep 17 00:00:00 2001 From: Eric Litak Date: Sun, 16 Jul 2017 06:09:57 -0700 Subject: [PATCH] factorio: authenticatedFetch now handles 404 properly --- pkgs/games/factorio/fetch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/games/factorio/fetch.sh b/pkgs/games/factorio/fetch.sh index 30d9c9fdefe0..312dc9b6d61e 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