Curl handle redirrects automatically.

This commit is contained in:
stormdragon2976 2023-01-21 02:21:04 -05:00
parent ac1d481286
commit 6914607206

View File

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