diff --git a/cmd/slctl/slctl.go b/cmd/slctl/slctl.go index 2fd2917..040f000 100644 --- a/cmd/slctl/slctl.go +++ b/cmd/slctl/slctl.go @@ -69,7 +69,9 @@ func newRootCmd(args []string) (*cobra.Command, error) { } }, PersistentPostRun: func(cmd *cobra.Command, args []string) { - environment.CheckForUpdates(logrus.StandardLogger(), environment.Settings.Home, version, false) + if !environment.Settings.Offline { + environment.CheckForUpdates(logrus.StandardLogger(), environment.Settings.Home, version, false) + } plugin.Cleanup(logrus.StandardLogger(), environment.Settings.Home, false, false) }, }