Curl handle redirrects automatically.
This commit is contained in:
parent
ac1d481286
commit
6914607206
@ -192,7 +192,7 @@ download() {
|
||||
fi
|
||||
# Skip if the item is in cache.
|
||||
test -e "${cache}/${dest}" && continue
|
||||
if ! curl -4 --output "${cache}/${dest}" "${i}" ; then
|
||||
if ! curl -L4 --output "${cache}/${dest}" "${i}" ; then
|
||||
echo "Could not download \"$i\"..."
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user