Merge pull request #36 from PeterMosmans/symlinks

Make sure that custom openssl gets selected
This commit is contained in:
Julien Vehent 2014-12-25 12:08:00 -05:00
commit 2d030775c4
1 changed files with 4 additions and 1 deletions

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)"