2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-04 15:03:41 +01:00

Fix OSX: require bash4, add openssl-darwin64 binary

This commit is contained in:
Julien Vehent 2014-12-25 13:25:29 -05:00
parent 4e74308c37
commit 904e311124
2 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,16 @@ REALPATH=$(dirname $0)
# make sure this doesn't error out when readlink -f isn't available (OSX)
readlink -f $0 &>/dev/null && REALPATH=$(dirname $(readlink -f $0))
OPENSSLBIN="${REALPATH}/openssl"
if [ "$(uname -s)" == "Darwin" ]; then
OPENSSLBIN="${REALPATH}/openssl-darwin64"
fi
# cipherscan requires bash4, which doesn't come by default in OSX
if [ "$(bash --version |grep 'version 4')" == "" ]; then
echo "Bash version 4 is required to run cipherscan."
echo "Please upgrade your version of bash (ex: brew install bash)."
exit 1
fi
# test that timeout or gtimeout (darwin) are present
TIMEOUTBIN="$(which timeout)"

BIN
openssl-darwin64 Executable file

Binary file not shown.