build-style/cmake.sh: fix result code invalid invertation
This commit is contained in:
parent
1c738d7c95
commit
b842440e76
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue