From 58f7068d7a90bfc841c7e490ea67140208ab4409 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Sat, 15 Jan 2022 23:11:21 +1030 Subject: [PATCH] Check for attempt to pipe in and out at the same time. --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 51f5a08..4de8931 100644 --- a/main.go +++ b/main.go @@ -36,6 +36,8 @@ func main() { } else if !stdinTTY && stdoutTTY { *isSend = true + } else if !stdinTTY && !stdoutTTY { + log.Fatal("I can't cope with both stdin and stdout being pipes") } }