Skip to content

Commit

Permalink
fix: repeated prompt in telemetrt (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deepak Sharma authored Apr 27, 2021
1 parent f3a3201 commit 4bfa169
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,10 @@ func askTelemetryConsent() {
if !viper.IsSet("consent_telemetry") {
response := telemetry.GetTelemetryConsent()
viper.Set("consent_telemetry", strconv.FormatBool(response))
err := viper.WriteConfig()
if err != nil {
log.Error().Msgf("unable to write config")
return
}
}
}

0 comments on commit 4bfa169

Please sign in to comment.