mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 09:11:35 +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:
commit
cd9572b225
1 changed files with 2 additions and 2 deletions
|
@ -258,10 +258,10 @@ download() {
|
||||||
|
|
||||||
if [ -z $VERBOSE ]; then
|
if [ -z $VERBOSE ]; then
|
||||||
RET=0
|
RET=0
|
||||||
curl --silent --retry 10 -Ly 5 -o $FILE $URL || RET=$?
|
curl --silent --fail --retry 10 -Ly 5 -o $FILE $URL || RET=$?
|
||||||
else
|
else
|
||||||
RET=0
|
RET=0
|
||||||
curl --retry 10 -Ly 5 -o $FILE $URL || RET=$?
|
curl --fail --retry 10 -Ly 5 -o $FILE $URL || RET=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $RET -ne 0 ]; then
|
if [ $RET -ne 0 ]; then
|
||||||
|
|
Loading…
Reference in a new issue