2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-15 15:22:22 +00:00

Print message for password being read from stdin

Closes #1911
This commit is contained in:
Alexander Neumann 2018-07-31 20:21:18 +02:00
parent a717e9e6f7
commit 3678ec9ad8

View File

@ -293,6 +293,7 @@ func ReadPassword(opts GlobalOptions, prompt string) (string, error) {
password, err = readPasswordTerminal(os.Stdin, os.Stderr, prompt) password, err = readPasswordTerminal(os.Stdin, os.Stderr, prompt)
} else { } else {
password, err = readPassword(os.Stdin) password, err = readPassword(os.Stdin)
Verbosef("read password from stdin\n")
} }
if err != nil { if err != nil {