Skip to content

Commit

Permalink
Version check enhancements
Browse files Browse the repository at this point in the history
Add the version osdctl thinks it is running and the latest version available to the version check output.
  • Loading branch information
geowa4 committed Jan 27, 2023
1 parent edee89e commit 4a4d62e
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 @@ -62,7 +62,7 @@ func NewCmdRoot(streams genericclioptions.IOStreams) *cobra.Command {
}

if utils.Version != latestVersion {
fmt.Println("The current version is different than the latest released version.")
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 4a4d62e

Please sign in to comment.