* Follow redirects.

svn path=/nixpkgs/trunk/; revision=899
This commit is contained in:
Eelco Dolstra 2004-04-01 19:10:37 +00:00
parent 2b58d63ab6
commit 7bf54b734e

View file

@ -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