mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 12:32:36 +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
|
||||
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…
x
Reference in New Issue
Block a user