mirror of
https://github.com/restic/restic.git
synced 2025-02-22 23:08:26 +00:00
Merge pull request #5242 from MichaelEischer/fix-read-stdin-msg
print password from stdin message only to terminal
This commit is contained in:
commit
5ddda7f5e9
@ -404,7 +404,9 @@ func ReadPassword(ctx context.Context, opts GlobalOptions, prompt string) (strin
|
|||||||
password, err = readPasswordTerminal(ctx, os.Stdin, os.Stderr, prompt)
|
password, err = readPasswordTerminal(ctx, os.Stdin, os.Stderr, prompt)
|
||||||
} else {
|
} else {
|
||||||
password, err = readPassword(os.Stdin)
|
password, err = readPassword(os.Stdin)
|
||||||
Verbosef("reading repository password from stdin\n")
|
if stdoutIsTerminal() {
|
||||||
|
Verbosef("reading repository password from stdin\n")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user