mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
curl: Use --fail to catch errors
This commit is contained in:
parent
36c1e3bc5f
commit
a7b12c6bd9
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ curl -sS -H 'Accept: application/json' https://hydra.nixos.org/jobset/nix/master
|
|||
someBuildFailed=0
|
||||
|
||||
for buildId in $BUILDS_FOR_LATEST_EVAL; do
|
||||
buildInfo=$(curl -sS -H 'Accept: application/json' "https://hydra.nixos.org/build/$buildId")
|
||||
buildInfo=$(curl --fail -sS -H 'Accept: application/json' "https://hydra.nixos.org/build/$buildId")
|
||||
|
||||
finished=$(echo "$buildInfo" | jq -r '.finished')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue