mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
fix the defect in the shell scripts
when the binary is missing, it should prompt for downloading instead of sliently move on.
This commit is contained in:
parent
be68d68b2b
commit
7cfb6ec1a3
@ -323,6 +323,9 @@ function find-tar() {
|
|||||||
# KUBE_MANIFESTS_TAR
|
# KUBE_MANIFESTS_TAR
|
||||||
function find-release-tars() {
|
function find-release-tars() {
|
||||||
SERVER_BINARY_TAR=$(find-tar kubernetes-server-linux-amd64.tar.gz)
|
SERVER_BINARY_TAR=$(find-tar kubernetes-server-linux-amd64.tar.gz)
|
||||||
|
if [[ -z "${SERVER_BINARY_TAR}" ]]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
if [[ "${NUM_WINDOWS_NODES}" -gt "0" ]]; then
|
if [[ "${NUM_WINDOWS_NODES}" -gt "0" ]]; then
|
||||||
NODE_BINARY_TAR=$(find-tar kubernetes-node-windows-amd64.tar.gz)
|
NODE_BINARY_TAR=$(find-tar kubernetes-node-windows-amd64.tar.gz)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user