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>
This commit is contained in:
Alexey Neyman 2017-08-18 23:55:24 -07:00
parent be399f1046
commit 2dfa203872

View File

@ -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:
#