mirror of
https://github.com/fosrl/olm.git
synced 2026-02-07 21:46:40 +00:00
5
main.go
5
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,
|
||||
|
||||
Reference in New Issue
Block a user