diff --git a/scripts/linux/build.sh b/scripts/linux/build.sh index 2907f71d5b..019366c749 100755 --- a/scripts/linux/build.sh +++ b/scripts/linux/build.sh @@ -75,8 +75,7 @@ pushd build # NOT the same variable as above # this target also includes building & running of testpaint make $OPENRCT2_MAKE_OPTS testpaint - ./testpaint --silent - if [[ $? == 1 ]] ; then echo Allowing failed tests to pass ; fi + ./testpaint --silent || if [[ $? -eq 1 ]] ; then echo Allowing failed tests to pass ; else false; fi else cmake $OPENRCT2_CMAKE_OPTS .. # NOT the same variable as above