summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makekernel.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/makekernel.in b/makekernel.in
index 4176aae..c165b47 100644
--- a/makekernel.in
+++ b/makekernel.in
@@ -45,13 +45,6 @@ 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:ns \
--long allowDownload \
@@ -136,6 +129,13 @@ then
exit 0
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
+
[ -z "${curVer}" ] && curVer="$("$0" -s)"
mainVer="$(
echo "${curVer}" | \