mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
* Add `--fail' to curl invocation to catch errors.
svn path=/nixpkgs/trunk/; revision=889
This commit is contained in:
parent
817d1b27ef
commit
ab7af4709a
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
header "downloading $out from $url"
|
header "downloading $out from $url"
|
||||||
|
|
||||||
curl "$url" > "$out"
|
curl --fail "$url" > "$out"
|
||||||
|
|
||||||
actual=$(md5sum -b "$out" | cut -c1-32)
|
actual=$(md5sum -b "$out" | cut -c1-32)
|
||||||
if test "$actual" != "$md5"; then
|
if test "$actual" != "$md5"; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue