cURL now follows redirections on program downloads

This commit is contained in:
2023-05-11 12:29:19 +02:00
parent 0c5aa52900
commit 09193e0541

View File

@@ -140,7 +140,7 @@ if [ ! "${downloadUrl}" = "" ]; then
mkdir data
pushd data >/dev/null
_filename=$(curl -f -s -w "%{filename_effective}" -L -O "${downloadUrl}")
_filename=$(curl -Lfsw "%{filename_effective}" -L -O "${downloadUrl}")
if [ $? -ne 0 ]; then
echo "Curl failed to download the file from ${downloadUrl}"
else