diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 7d299026b3..eb7907b0c4 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 }