Change-Id: I78f021b1c672a53bcb54e74da16b98730ae87ca8
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
#!/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
#!/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