mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 14:06:45 +01:00
cmd/utils: removed password line endings when not using liner.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user