dont try to update when none available

This commit is contained in:
olebeck 2022-09-06 12:18:54 +02:00
parent e46b2f104d
commit c9ec06ab0c
1 changed files with 1 additions and 0 deletions

View File

@ -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)