Unverified Commit 3ac83201 authored by MatteoPologruto's avatar MatteoPologruto Committed by GitHub

Do not show available updates with `version` if `updater.enable_notification`...

Do not show available updates with `version` if `updater.enable_notification` is set to `false` (#2055)
parent dca3df79
......@@ -59,7 +59,7 @@ func runVersionCommand(cmd *cobra.Command, args []string) {
if err != nil {
feedback.Fatal(fmt.Sprintf("Error parsing current version: %s", err), feedback.ErrGeneric)
}
latestVersion := updater.ForceCheckForUpdate(currentVersion)
latestVersion := updater.CheckForUpdate(currentVersion)
if feedback.GetFormat() != feedback.Text && latestVersion != nil {
// Set this only we managed to get the latest version
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment