build-style/cmake.sh: fix result code invalid invertation
This commit is contained in:
parent
1c738d7c95
commit
b842440e76
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue