mirror of
https://github.com/FiloSottile/age.git
synced 2026-01-09 05:13:07 +00:00
cmd/age: don't worry about sending decryption output to the terminal
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user