From 52bd0bc71396af28e1430c2cd0eea799f214864c Mon Sep 17 00:00:00 2001 From: Nikhita Raghunath Date: Mon, 26 Jun 2017 21:59:01 +0530 Subject: [PATCH] Fix error in local-cluster-up When $GO_OUT is not set, line 152 will output the error: [: ==: unary operator expected. This occurs because the if condition becomes if [ == "" ]. This results in an error because == is a binary operator. --- hack/local-up-cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index e9cb8b99f33..928d60563b4 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -149,7 +149,7 @@ do ;; O) GO_OUT=$(guess_built_binary_path) - if [ $GO_OUT == "" ]; then + if [ "$GO_OUT" == "" ]; then echo "Could not guess the correct output directory to use." exit 1 fi