summaryrefslogtreecommitdiff
path: root/cmd/eduvpn-cli
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/eduvpn-cli')
-rw-r--r--cmd/eduvpn-cli/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/eduvpn-cli/main.go b/cmd/eduvpn-cli/main.go
index 2a8ffc1..bb90e40 100644
--- a/cmd/eduvpn-cli/main.go
+++ b/cmd/eduvpn-cli/main.go
@@ -35,17 +35,17 @@ func openBrowser(data any) {
func getProfileInteractive(profiles *srvtypes.Profiles, data any) (string, error) {
fmt.Printf("Multiple VPN profiles found. Please select a profile by entering e.g. 1")
- ps := ""
+ var ps strings.Builder
var options []string
i := 0
for k, v := range profiles.Map {
- ps += fmt.Sprintf("\n%d - %s", i+1, i18n.GetLanguageMatched(v.DisplayName, "en"))
+ ps.WriteString(fmt.Sprintf("\n%d - %s", i+1, i18n.GetLanguageMatched(v.DisplayName, "en")))
options = append(options, k)
i++
}
// Show the profiles
- fmt.Println(ps)
+ fmt.Println(ps.String())
var idx int
if _, err := fmt.Scanf("%d", &idx); err != nil || idx <= 0 ||