Skip to content

Commit 4bfa169

Browse files
author
Deepak Sharma
authored
fix: repeated prompt in telemetrt (#54)
1 parent f3a3201 commit 4bfa169

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/root.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,5 +181,10 @@ func askTelemetryConsent() {
181181
if !viper.IsSet("consent_telemetry") {
182182
response := telemetry.GetTelemetryConsent()
183183
viper.Set("consent_telemetry", strconv.FormatBool(response))
184+
err := viper.WriteConfig()
185+
if err != nil {
186+
log.Error().Msgf("unable to write config")
187+
return
188+
}
184189
}
185190
}

0 commit comments

Comments
 (0)