2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-22 06:13:42 +01:00

Make sure that custom openssl gets selected

Symlinks are now resolved (when readlink -f is available)
This commit is contained in:
Peter Mosmans 2014-11-14 10:49:16 +11:00
parent 818bf29b02
commit 558bf7c9e2

View File

@ -10,7 +10,10 @@
DOBENCHMARK=0
BENCHMARKITER=30
OPENSSLBIN="$(dirname $0)/openssl"
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"
# test that timeout or gtimeout (darwin) are present
TIMEOUTBIN="$(which timeout)"