cmd/uplink/initial_setup.go: fix logic on analytics prompt
Correct the logic for the analytics prompt on a new setup of uplink. Change-Id: I86755711dd2f3c8418609bd7072ae5d55927b841
This commit is contained in:
parent
f52ea2744b
commit
d53a56cef6
@ -27,7 +27,7 @@ func saveInitialConfig(ctx context.Context, ex ulext.External, interactiveFlag b
|
||||
return errs.Wrap(err)
|
||||
}
|
||||
answer = strings.ToLower(answer)
|
||||
analyticsEnabled = answer != "y" && answer != "yes"
|
||||
analyticsEnabled = answer == "y" || answer == "yes"
|
||||
} else {
|
||||
analyticsEnabled = false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user