Skip to content

Commit

Permalink
Fix version check race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dcwangmit01 committed Sep 24, 2018
1 parent a558dfa commit e35e495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kdk/kdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ func init() {
cobra.OnInitialize(initConfig)
CurrentKdkEnvConfig.Init()

kdk.WarnIfUpdateAvailable(&CurrentKdkEnvConfig)

rootCmd.PersistentFlags().StringVar(&CurrentKdkEnvConfig.ConfigFile.AppConfig.Name, "name", "kdk", "KDK name")
rootCmd.PersistentFlags().BoolVarP(&debug, "debug", "d", false, "Debug Mode")
}
Expand Down Expand Up @@ -99,4 +97,6 @@ func initConfig() {
log.Fatal("Please rebuild config file with `kdk init`")
}
}

kdk.WarnIfUpdateAvailable(&CurrentKdkEnvConfig)
}

0 comments on commit e35e495

Please sign in to comment.