Skip to content

Commit

Permalink
minikube: fix the version check regexp
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Perrin <alex@kaworu.ch>
  • Loading branch information
kaworu committed Jan 7, 2021
1 parent a7dea57 commit 452b581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/minikube.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (m *minikubeVersionValidation) Check(ctx context.Context, k *K8sInstaller)
return fmt.Errorf("unable to execute \"minikube version\": %w", err)
}

ver := regexp.MustCompile("(v[0-9]+.[0-9]+.[0-9]+)")
ver := regexp.MustCompile(`(v[0-9]+\.[0-9]+\.[0-9]+)`)
verString := ver.FindString(string(bytes))
v, err := versioncheck.Version(verString)
if err != nil {
Expand Down

0 comments on commit 452b581

Please sign in to comment.