forked from mirrors/nixpkgs
* Follow redirects.
svn path=/nixpkgs/trunk/; revision=899
This commit is contained in:
parent
2b58d63ab6
commit
7bf54b734e
|
@ -2,7 +2,7 @@
|
|||
|
||||
header "downloading $out from $url"
|
||||
|
||||
curl --fail "$url" > "$out"
|
||||
curl --fail --location --max-redirs 20 "$url" > "$out"
|
||||
|
||||
actual=$(md5sum -b "$out" | cut -c1-32)
|
||||
if test "$actual" != "$md5"; then
|
||||
|
|
Loading…
Reference in a new issue