webget: curl follow redirect
authorKshitij Bansal <kshitij@cs.nyu.edu>
Mon, 16 Feb 2015 06:54:27 +0000 (01:54 -0500)
committerKshitij Bansal <kshitij@cs.nyu.edu>
Mon, 16 Feb 2015 06:54:27 +0000 (01:54 -0500)
contrib/win32-build

index 45c9dfa54b15dbf0e268ea526039c1aa01cedd47..290d537ebdd3f494fce502469e4b215ec22c043a 100755 (executable)
@@ -40,7 +40,7 @@ function reporterror {
 
 function webget {
   if which curl &>/dev/null; then
-    curl "$1" >"$2"
+    curl -L "$1" >"$2"
   elif which wget &>/dev/null; then
     wget -c -O "$2" "$1"
   else