diff --git a/main.go b/main.go index ef0cb3e..7b2627e 100644 --- a/main.go +++ b/main.go @@ -9,6 +9,7 @@ import ( "syscall" "github.com/fosrl/newt/logger" + "github.com/fosrl/newt/updates" "github.com/fosrl/olm/olm" ) @@ -199,6 +200,10 @@ func runOlmMainWithArgs(ctx context.Context, args []string) { logger.Debug("Saved full olm config with all options") } + if err := updates.CheckForUpdate("fosrl", "olm", config.Version); err != nil { + logger.Debug("Failed to check for updates: %v", err) + } + // Create a new olm.Config struct and copy values from the main config olmConfig := olm.Config{ Endpoint: config.Endpoint,