jjb/vpp: fix bad test for makefile target 26/24226/1
authorDave Wallace <dwallacelf@gmail.com>
Tue, 7 Jan 2020 15:32:47 +0000 (15:32 +0000)
committerDave Wallace <dwallacelf@gmail.com>
Tue, 7 Jan 2020 15:37:53 +0000 (15:37 +0000)
Change-Id: I78f021b1c672a53bcb54e74da16b98730ae87ca8
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
jjb/vpp/include-raw-vpp-checkstyle.sh
jjb/vpp/include-raw-vpp-test-checkstyle.sh

index bc1e408..7c520dd 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # jjb/vpp/include-raw-vpp-checkstyle.sh
 
-if [ "$(grep -E '^checkstyle:' Makefile)" = "checkstyle:" ]
+if [ -n "$(grep -E '^checkstyle:' Makefile)" ]
 then
        make checkstyle
 else
index 6cb6fac..bdc8431 100644 (file)
@@ -1,9 +1,9 @@
 #!/bin/bash
 # jjb/vpp/include-raw-vpp-test-checkstyle.sh
 
-if [ "$(grep -E '^test-checkstyle:' Makefile)" = "test-checkstyle:" ]
+if [ -n "$(grep -E '^test-checkstyle:' Makefile)" ]
 then
        make test-checkstyle
 else
-       echo "Can't find test-checkstyle target in Makefile - skipping test checkstyle"
+       echo "Can't find test-checkstyle target in Makefile - skipping test-checkstyle"
 fi