Skip to content

Commit

Permalink
check updates only in online mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shihyuho committed Oct 15, 2019
1 parent 6e66b5b commit b4a0256
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/slctl/slctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
}
Expand Down

0 comments on commit b4a0256

Please sign in to comment.