File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ function os::build::os_version_vars() {
578
578
# Try to match the "git describe" output to a regex to try to extract
579
579
# the "major" and "minor" versions and whether this is the exact tagged
580
580
# version or whether the tree is between two tagged versions.
581
- if [[ " ${OS_GIT_VERSION} " =~ ^v([0-9]+)\. ([0-9]+)(\. [0-9]+)? ([-].* )? $ ]]; then
581
+ if [[ " ${OS_GIT_VERSION} " =~ ^v([0-9]+)\. ([0-9]+)(\. [0-9]+)+ ? ([-].* )? $ ]]; then
582
582
OS_GIT_MAJOR=${BASH_REMATCH[1]}
583
583
OS_GIT_MINOR=${BASH_REMATCH[2]}
584
584
if [[ -n " ${BASH_REMATCH[4]} " ]]; then
@@ -626,7 +626,7 @@ function os::build::kube_version_vars() {
626
626
# Try to match the "git describe" output to a regex to try to extract
627
627
# the "major" and "minor" versions and whether this is the exact tagged
628
628
# version or whether the tree is between two tagged versions.
629
- if [[ " ${KUBE_GIT_VERSION} " =~ ^v([0-9]+)\. ([0-9]+)(\. [0-9]+)? ([-].* )? $ ]]; then
629
+ if [[ " ${KUBE_GIT_VERSION} " =~ ^v([0-9]+)\. ([0-9]+)(\. [0-9]+)+ ? ([-].* )? $ ]]; then
630
630
KUBE_GIT_MAJOR=${BASH_REMATCH[1]}
631
631
KUBE_GIT_MINOR=${BASH_REMATCH[2]}
632
632
if [[ -n " ${BASH_REMATCH[4]} " ]]; then
You can’t perform that action at this time.
0 commit comments