mirror of
https://github.com/restic/restic.git
synced 2026-02-03 04:20:45 -05:00
print password from stdin message only to terminal
This commit is contained in:
parent
da47967316
commit
5497217018
1 changed files with 3 additions and 1 deletions
|
|
@ -370,7 +370,9 @@ func ReadPassword(ctx context.Context, opts GlobalOptions, prompt string) (strin
|
|||
password, err = readPasswordTerminal(ctx, os.Stdin, os.Stderr, prompt)
|
||||
} else {
|
||||
password, err = readPassword(os.Stdin)
|
||||
Verbosef("reading repository password from stdin\n")
|
||||
if stdoutIsTerminal() {
|
||||
Verbosef("reading repository password from stdin\n")
|
||||
}
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue