mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Address review comments.
This commit is contained in:
parent
b26c28d666
commit
80d22785e7
@ -52,10 +52,12 @@ function get_version() {
|
|||||||
if [[ -n "${KUBERNETES_RELEASE:-}" ]]; then
|
if [[ -n "${KUBERNETES_RELEASE:-}" ]]; then
|
||||||
echo "${KUBERNETES_RELEASE//+/_}"
|
echo "${KUBERNETES_RELEASE//+/_}"
|
||||||
return
|
return
|
||||||
elif [[ ! -f "${versions_file}" ]]; then
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f "${versions_file}" ]]; then
|
||||||
echo "Couldn't determine the release version: neither the " \
|
echo "Couldn't determine the release version: neither the " \
|
||||||
"KUBERNETES_RELEASE environment variable is set, nor the " \
|
"KUBERNETES_RELEASE environment variable is set, nor does " \
|
||||||
"versions file is provided"
|
"the versions file exist at ${versions_file}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user