cmd/age: don't worry about sending decryption output to the terminal

This commit is contained in:
Filippo Valsorda
2019-11-27 22:55:29 -04:00
parent 025d8d5c0b
commit a070570595

View File

@@ -88,7 +88,7 @@ func main() {
}
defer f.Close()
out = f
} else if terminal.IsTerminal(int(os.Stdout.Fd())) {
} else if terminal.IsTerminal(int(os.Stdout.Fd())) && !decryptFlag {
if armorFlag {
// If the output will go to a TTY, and it will be armored, buffer it
// up so it doesn't get in the way of typing the input.