diff --git a/src/rejester/run.py b/src/rejester/run.py
index <HASH>..<HASH> 100644
--- a/src/rejester/run.py
+++ b/src/rejester/run.py
@@ -33,6 +33,8 @@ def getch():
     capture one char from stdin for responding to Y/N prompt
     '''
     fd = sys.stdin.fileno()
+    if not os.isatty(fd):
+        return sys.stdin.read(1)
     old_settings = termios.tcgetattr(fd)
     try:
         tty.setraw(sys.stdin.fileno())
'rejester delete' doesn't crash if run noninteractively