Make curl follow redirections.

This commit is contained in:
Mark Andrews
2012-04-27 10:34:27 +10:00
parent 2fe2cfd782
commit 7d8b12117d

View File

@@ -5,14 +5,14 @@ then
fetch=fetch
elif type curl >/dev/null 2>&1
then
fetch="curl -O"
fetch="curl -L -O"
else
exit 1
fi
for i
do
z=`expr "$i" : 'http://www.ietf.org/internet-drafts/\(.*\)'`
z=`expr "$i" : 'http://www.ietf.org/id/\(.*\)'`
if test -n "$z"
then
i="$z"