mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-12-25 12:13:41 +01:00
Fix OSX: require bash4, add openssl-darwin64 binary
This commit is contained in:
parent
4e74308c37
commit
904e311124
10
cipherscan
10
cipherscan
@ -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
BIN
openssl-darwin64
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user