1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-04 06:39:40 +00:00

Merge branch 'curl-fail' into 'master'

Fail on bad download instead of downloading HTML 404 page

See merge request OpenMW/openmw!992
This commit is contained in:
psi29a 2021-07-05 06:10:27 +00:00
commit cd9572b225

View file

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