Return if no releases

We dont fail out as if there is not newer releases we dont really care?

Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
Itxaka
2024-09-24 12:40:45 +02:00
parent ce714afe61
commit 20966e5a3e

View File

@@ -161,6 +161,10 @@ See https://kairos.io/docs/upgrade/manual/ for documentation.
if err != nil { if err != nil {
return err return err
} }
if len(tags) == 0 {
fmt.Println("No newer releases found")
return nil
}
if c.Bool("recovery") && c.String("boot-entry") != "" { if c.Bool("recovery") && c.String("boot-entry") != "" {
return fmt.Errorf("only one of '--recovery' and '--boot-entry' can be set") return fmt.Errorf("only one of '--recovery' and '--boot-entry' can be set")