Skip to content

Commit

Permalink
Merge pull request #320 from fahlmant/fix-version-check-v
Browse files Browse the repository at this point in the history
Trim v for version check
  • Loading branch information
openshift-merge-robot authored Jan 30, 2023
2 parents 0ef4d1f + 1dae6b9 commit e0727ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]")
Expand Down

0 comments on commit e0727ea

Please sign in to comment.