2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-22 14:23:41 +01:00

fix: ignore case in bash version string

Currently on some systems `bash --version` reports `GNU bash, Version 4[…]` which will fail the test.
This commit is contained in:
Christian Stadelmann 2015-01-02 22:47:28 +01:00
parent a90fc8bc58
commit 54ec2aca99

View File

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