diff --git a/hack/lib/version.sh b/hack/lib/version.sh index d6120d5a42a..5d77bd0b9ef 100644 --- a/hack/lib/version.sh +++ b/hack/lib/version.sh @@ -45,7 +45,7 @@ kube::version::get_version_vars() { # When a 'git archive' is exported, the '$Format:%D$' below will look # something like 'HEAD -> release-1.8, tag: v1.8.3' where then 'tag: ' # can be extracted from it. - if [[ '$Format:%D$' =~ tag:\ (v[^ ]+) ]]; then + if [[ '$Format:%D$' =~ tag:\ (v[^ ,]+) ]]; then KUBE_GIT_VERSION="${BASH_REMATCH[1]}" fi fi