summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-08-19 06:55:24 (GMT)
committerAlexey Neyman <stilor@att.net>2017-08-19 06:55:24 (GMT)
commit2dfa203872a73fb7b6aa4ccd440864cba74a8777 (patch)
tree6fa28a5541997d42ae26d140856ace9e2e030926 /bootstrap
parentbe399f1046874daa40b15cbb7d74e715ae3714e6 (diff)
Require bash4 to run bootstrap
Fixes #797 (or, at least makes it fail gracefully with an advice) Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index f5784cd..d01a7de 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,5 +1,11 @@
#!/bin/bash
+if [ "${BASH_VERSINFO[0]}" -lt 4 ]; then
+ echo "Your BASH shell version (${BASH_VERSION}) is too old." >&2
+ echo "Run bootstrap on a machine with BASH 4.x" >&2
+ exit 1
+fi
+
########################################
# Common meta-language implementation. Syntax:
#