Merge pull request #48076 from nikhita/fix-local-cluster-up

Automatic merge from submit-queue (batch tested with PRs 44058, 48085, 48077, 48076, 47823)

Fix error in local-cluster-up

When $GO_OUT is not set, line 152 outputs an error.

```
./hack/local-up-cluster.sh: line 152: [: ==: unary operator expected
```
This occurs because the if condition expands as `if [  == "" ]`. This results in an error because == is a binary operator and expects something on the LHS.

**Release note**:

```release-note
NONE
```

cc @sttts 

FYI @Gouthamve
This commit is contained in:
Kubernetes Submit Queue 2017-06-26 15:29:31 -07:00 committed by GitHub
commit 36e17f6d07

View File

@ -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