mirror of
https://github.com/octoleo/restic.git
synced 2024-12-03 18:38:20 +00:00
Merge pull request #1913 from restic/restic-password-stdin-message
Print message for password being read from stdin
This commit is contained in:
commit
be4f54b603
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user