mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Merge branch 'set-e-kills-ret' into 'master'
Fix Windows prebuild script error messages Closes #5459 See merge request OpenMW/openmw!223
This commit is contained in:
commit
9067894335
@ -213,8 +213,8 @@ run_cmd() {
|
|||||||
shift
|
shift
|
||||||
|
|
||||||
if [ -z $VERBOSE ]; then
|
if [ -z $VERBOSE ]; then
|
||||||
eval $CMD $@ > output.log 2>&1
|
RET=0
|
||||||
RET=$?
|
eval $CMD $@ > output.log 2>&1 || RET=$?
|
||||||
|
|
||||||
if [ $RET -ne 0 ]; then
|
if [ $RET -ne 0 ]; then
|
||||||
if [ -z $APPVEYOR ]; then
|
if [ -z $APPVEYOR ]; then
|
||||||
@ -230,8 +230,9 @@ run_cmd() {
|
|||||||
|
|
||||||
return $RET
|
return $RET
|
||||||
else
|
else
|
||||||
eval $CMD $@
|
RET=0
|
||||||
return $?
|
eval $CMD $@ || RET=$?
|
||||||
|
return RET
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -256,15 +257,16 @@ download() {
|
|||||||
printf " Downloading $FILE... "
|
printf " Downloading $FILE... "
|
||||||
|
|
||||||
if [ -z $VERBOSE ]; then
|
if [ -z $VERBOSE ]; then
|
||||||
curl --silent --retry 10 -kLy 5 -o $FILE $URL
|
RET=0
|
||||||
RET=$?
|
curl --silent --retry 10 -kLy 5 -o $FILE $URL || RET=$?
|
||||||
else
|
else
|
||||||
curl --retry 10 -kLy 5 -o $FILE $URL
|
RET=0
|
||||||
RET=$?
|
curl --retry 10 -kLy 5 -o $FILE $URL || RET=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $RET -ne 0 ]; then
|
if [ $RET -ne 0 ]; then
|
||||||
echo "Failed!"
|
echo "Failed!"
|
||||||
|
wrappedExit $RET
|
||||||
else
|
else
|
||||||
echo "Done."
|
echo "Done."
|
||||||
fi
|
fi
|
||||||
@ -997,8 +999,8 @@ if [ -z $VERBOSE ]; then
|
|||||||
else
|
else
|
||||||
echo "- cmake .. $CMAKE_OPTS"
|
echo "- cmake .. $CMAKE_OPTS"
|
||||||
fi
|
fi
|
||||||
run_cmd cmake .. $CMAKE_OPTS
|
RET=0
|
||||||
RET=$?
|
run_cmd cmake .. $CMAKE_OPTS || RET=$?
|
||||||
if [ -z $VERBOSE ]; then
|
if [ -z $VERBOSE ]; then
|
||||||
if [ $RET -eq 0 ]; then
|
if [ $RET -eq 0 ]; then
|
||||||
echo Done.
|
echo Done.
|
||||||
@ -1006,6 +1008,9 @@ if [ -z $VERBOSE ]; then
|
|||||||
echo Failed.
|
echo Failed.
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [ $RET -ne 0 ]; then
|
||||||
|
wrappedExit $RET
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Script completed successfully."
|
echo "Script completed successfully."
|
||||||
echo "You now have an OpenMW build system at $(unixPathAsWindows "$(pwd)")"
|
echo "You now have an OpenMW build system at $(unixPathAsWindows "$(pwd)")"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user