From c9ec06ab0cb5e027d7e2049b9627f200f0f86309 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Tue, 6 Sep 2022 12:18:54 +0200 Subject: [PATCH] dont try to update when none available --- subcommands/update.go | 1 + 1 file changed, 1 insertion(+) diff --git a/subcommands/update.go b/subcommands/update.go index 1afce39..ba09eb4 100644 --- a/subcommands/update.go +++ b/subcommands/update.go @@ -29,6 +29,7 @@ func (c *UpdateCMD) Execute(ctx context.Context, f *flag.FlagSet, _ ...interface } if newVersion == "" { logrus.Info("No Updates available.") + return 0 } logrus.Infof("Updating to %s", newVersion)