From c6f356b2dcc340bc9bb2f044b691a60c29fb3570 Mon Sep 17 00:00:00 2001 From: Alex Joedt Date: Tue, 31 Oct 2023 21:37:27 +0100 Subject: [PATCH] no error if newest version is installed --- internal/grip.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/grip.go b/internal/grip.go index f505ce5..642d3d3 100644 --- a/internal/grip.go +++ b/internal/grip.go @@ -145,7 +145,8 @@ func SelfUpdate(version string) error { res := semver.Compare(currentVersion, assetVersion) if res >= 0 { - return fmt.Errorf("newest version already installed") + fmt.Printf("newest version already installed\n") + return nil } defer func() {