This commit disables the version checker when JSON output (#153)
This commit is contained in:
parent
dd1e425d02
commit
27947c6746
2 changed files with 11 additions and 1 deletions
|
@ -62,7 +62,8 @@ func main() {
|
|||
zerolog.SetGlobalLevel(zerolog.DebugLevel)
|
||||
}
|
||||
|
||||
if !viper.GetBool("disable_check_updates") {
|
||||
jsonOutput := cli.HasJsonOutputFlag()
|
||||
if !viper.GetBool("disable_check_updates") && !jsonOutput {
|
||||
if (runtime.GOOS == "linux" || runtime.GOOS == "darwin") && cli.Version != "dev" {
|
||||
githubTag := &latest.GithubTag{
|
||||
Owner: "juanfont",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue