mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
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.
This commit is contained in:
parent
f505c386d3
commit
52bd0bc713
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user