aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/cmd.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go
index 7d299026b..eb7907b0c 100644
--- a/cmd/utils/cmd.go
+++ b/cmd/utils/cmd.go
@@ -92,6 +92,7 @@ func PromptPassword(prompt string, warnTerm bool) (string, error) {
}
fmt.Print(prompt)
input, err := bufio.NewReader(os.Stdin).ReadString('\n')
+ input = strings.TrimRight(input, "\r\n")
fmt.Println()
return input, err
}