mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
log bad format git version
This commit is contained in:
parent
e85b81bbee
commit
3e53e99aae
@ -99,7 +99,7 @@ kube::version::get_version_vars() {
|
|||||||
|
|
||||||
# If KUBE_GIT_VERSION is not a valid Semantic Version, then refuse to build.
|
# If KUBE_GIT_VERSION is not a valid Semantic Version, then refuse to build.
|
||||||
if ! [[ "${KUBE_GIT_VERSION}" =~ ^v([0-9]+)\.([0-9]+)(\.[0-9]+)?(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$ ]]; then
|
if ! [[ "${KUBE_GIT_VERSION}" =~ ^v([0-9]+)\.([0-9]+)(\.[0-9]+)?(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$ ]]; then
|
||||||
echo "KUBE_GIT_VERSION should be a valid Semantic Version"
|
echo "KUBE_GIT_VERSION should be a valid Semantic Version. Current value: ${KUBE_GIT_VERSION}"
|
||||||
echo "Please see more details here: https://semver.org"
|
echo "Please see more details here: https://semver.org"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user