cmd/utils: removed password line endings when not using liner.

pull/2371/head
Ramesh Nair 9 years ago
parent b3b110bc95
commit 6f30034413
  1. 1
      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
}

Loading…
Cancel
Save