diff --git a/cmd/cmd.go b/cmd/cmd.go index 2b721a232..6b2e5aacc 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -61,7 +61,7 @@ func NewCmdRoot(streams genericclioptions.IOStreams) *cobra.Command { fmt.Println("Please be aware that you are possibly running an outdated or unreleased version.") } - if utils.Version != latestVersion { + if utils.Version != strings.TrimPrefix(latestVersion, "v") { fmt.Println(fmt.Sprintf("The current version (%s) is different than the latest released version (%s).", utils.Version, latestVersion)) fmt.Println("It is recommended that you update to the latest released version to ensure that no known bugs or issues are hit.") fmt.Println("Please confirm that you would like to continue with [y|n]")