From a070570595a3f0a154f106b1c0ea7bc76ece1d89 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Wed, 27 Nov 2019 22:55:29 -0400 Subject: [PATCH] cmd/age: don't worry about sending decryption output to the terminal --- cmd/age/age.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/age/age.go b/cmd/age/age.go index 74d18be..63f792d 100644 --- a/cmd/age/age.go +++ b/cmd/age/age.go @@ -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.