mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 17:42:31 +00:00
Fail on bad download instead of downloading HTML 404 page
This commit is contained in:
parent
6d3cc0d281
commit
3014963145
@ -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…
x
Reference in New Issue
Block a user