summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makekernel.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/makekernel.in b/makekernel.in
index 61b915b..023f22b 100644
--- a/makekernel.in
+++ b/makekernel.in
@@ -38,6 +38,13 @@ then
exit 1
fi
+if ! stty &> /dev/null
+then
+ >&2 echo 'ERROR: Must be called from a terminal! Closing.'
+ >&2 echo 'Did you forget "-t" for ssh?'
+ exit 1
+fi
+
eval set -- "$(
getopt -o ac:s \
--long allowDownload \