Merge pull request #44 from genodeftest/patch-1

fix: ignore case in bash version string
This commit is contained in:
Julien Vehent 2015-01-26 11:10:55 -05:00
commit 606d7626db
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if [ "$(uname -s)" == "Darwin" ]; then
fi
# cipherscan requires bash4, which doesn't come by default in OSX
if [ "$(bash --version |grep 'version 4')" == "" ]; then
if [ ${BASH_VERSINFO[0]} -lt 4 ]; then
echo "Bash version 4 is required to run cipherscan."
echo "Please upgrade your version of bash (ex: brew install bash)."
exit 1