mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-27 16:17:22 +00:00
[release/1.3.6]: cmd/utils: removed password line endings when not using liner.
(cherry picked from commit 6f30034413)
This commit is contained in:
parent
506c927791
commit
a2e1e5c6a0
1 changed files with 1 additions and 0 deletions
|
|
@ -91,6 +91,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…
Reference in a new issue