build-style/cmake.sh: fix result code invalid invertation

This commit is contained in:
Enno Boland 2017-11-22 12:55:15 +01:00
parent 1c738d7c95
commit b842440e76

View file

@ -49,7 +49,9 @@ do_build() {
do_check() { do_check() {
if [ -z "$make_cmd" ] && [ -z "$make_check_target" ]; then if [ -z "$make_cmd" ] && [ -z "$make_check_target" ]; then
if ! make -q test 2>/dev/null; then if make -q test 2>/dev/null; then
:
else
if [ $? -eq 2 ]; then if [ $? -eq 2 ]; then
msg_warn 'No target to "make test".\n' msg_warn 'No target to "make test".\n'
return 0 return 0