From 5d8bdde83a62b573f69db12b1dc9ed5ed7c9263b Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Wed, 25 Sep 2019 13:16:16 -0700 Subject: [PATCH] use [[ instead of [ --- test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test.sh b/test.sh index 2c0abe720d..c6173fb5b8 100755 --- a/test.sh +++ b/test.sh @@ -19,7 +19,7 @@ set -eu -o pipefail TESTSUITE="${TESTSUITE:-all}" # if env variable not set run all the tests exitcode=0 -if [ "$TESTSUITE" = "lint" ] || [ "$TESTSUITE" = "all" ] +if [[ "$TESTSUITE" = "lint" ]] || [[ "$TESTSUITE" = "all" ]] then echo "= make lint =============================================================" make -s lint-ci && echo ok || ((exitcode += 4)) @@ -30,7 +30,7 @@ fi -if [ "$TESTSUITE" = "boilerplate" ] || [ "$TESTSUITE" = "all" ] +if [[ "$TESTSUITE" = "boilerplate" ]] || [[ "$TESTSUITE" = "all" ]] then echo "= boilerplate ===========================================================" readonly PYTHON=$(type -P python || echo docker run --rm -it -v $(pwd):/minikube -w /minikube python python) @@ -46,7 +46,7 @@ then fi -if [ "$TESTSUITE" = "unittest" ] || [ "$TESTSUITE" = "all" ] +if [[ "$TESTSUITE" = "unittest" ]] || [[ "$TESTSUITE" = "all" ]] then echo "= schema_check ==========================================================" go run deploy/minikube/schema_check.go >/dev/null && echo ok || ((exitcode += 16))