diff --git a/base/commands/shell.go b/base/commands/shell.go index 9b058bbd..9123f270 100644 --- a/base/commands/shell.go +++ b/base/commands/shell.go @@ -77,7 +77,7 @@ func (cm *ShellCommand) ExecInteractive(ctx context.Context, ec plug.ExecContext logText = fmt.Sprintf("Log %9s : %s", logLevel, logPath) } I2(fmt.Fprintf(ec.Stdout(), banner, internal.Version, cfgText, logText)) - if err = maybePrintNewerVersion(ctx, ec); err != nil { + if err = maybePrintNewVersionNotification(ctx, ec); err != nil { ec.Logger().Error(err) } } diff --git a/base/commands/update_check.go b/base/commands/update_check.go index 5588c7d7..79905564 100644 --- a/base/commands/update_check.go +++ b/base/commands/update_check.go @@ -29,7 +29,7 @@ const ( checkInterval = time.Hour * 24 * 7 ) -func maybePrintNewerVersion(ctx context.Context, ec plug.ExecContext) error { +func maybePrintNewVersionNotification(ctx context.Context, ec plug.ExecContext) error { sa := store.NewStoreAccessor(filepath.Join(paths.Caches(), "update"), ec.Logger()) shouldSkip, err := shouldSkipNewerVersion(sa) if err != nil {