Check for attempt to pipe in and out at the same time.

This commit is contained in:
Justin Hawkins 2022-01-15 23:11:21 +10:30
parent 44d80f5fab
commit 58f7068d7a

View File

@ -36,6 +36,8 @@ func main() {
} else if !stdinTTY && stdoutTTY { } else if !stdinTTY && stdoutTTY {
*isSend = true *isSend = true
} else if !stdinTTY && !stdoutTTY {
log.Fatal("I can't cope with both stdin and stdout being pipes")
} }
} }