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
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ do_build() {
do_check() {
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
msg_warn 'No target to "make test".\n'
return 0