Merge branch 'curl-fail' into 'master'

Fail on bad download instead of downloading HTML 404 page

See merge request OpenMW/openmw!992
dont-compose-content
psi29a 4 years ago
commit cd9572b225

@ -258,10 +258,10 @@ download() {
if [ -z $VERBOSE ]; then
RET=0
curl --silent --retry 10 -Ly 5 -o $FILE $URL || RET=$?
curl --silent --fail --retry 10 -Ly 5 -o $FILE $URL || RET=$?
else
RET=0
curl --retry 10 -Ly 5 -o $FILE $URL || RET=$?
curl --fail --retry 10 -Ly 5 -o $FILE $URL || RET=$?
fi
if [ $RET -ne 0 ]; then

Loading…
Cancel
Save