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:
dlamarmorgan 2023-04-13 12:10:44 -07:00 committed by Damein Morgan
parent f52ea2744b
commit d53a56cef6

View File

@ -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
}