From 507e444b4157ec86620c0c3e00e7af481c63779a Mon Sep 17 00:00:00 2001 From: Matteo Pologruto Date: Tue, 31 Jan 2023 12:53:57 +0100 Subject: [PATCH] Do not show available updates with `version` if `updater.enable_notification` is set to `false` --- internal/cli/version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/version/version.go b/internal/cli/version/version.go index e4b52155ec7..e445d751fc8 100644 --- a/internal/cli/version/version.go +++ b/internal/cli/version/version.go @@ -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