mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +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)
|
O)
|
||||||
GO_OUT=$(guess_built_binary_path)
|
GO_OUT=$(guess_built_binary_path)
|
||||||
if [ $GO_OUT == "" ]; then
|
if [ "$GO_OUT" == "" ]; then
|
||||||
echo "Could not guess the correct output directory to use."
|
echo "Could not guess the correct output directory to use."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user