2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-25 23:43:42 +01:00

remove one unnecessary assignment when on Darwin.

This commit is contained in:
Richard Soderberg 2015-09-03 06:47:47 -07:00
parent 5ec3184a37
commit f0142c323a

View File

@ -14,9 +14,10 @@ DIRNAMEPATH=$(dirname "$0")
REALPATH="$DIRNAMEPATH"
# 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"
else
OPENSSLBIN="${REALPATH}/openssl"
fi
# cipherscan requires bash4, which doesn't come by default in OSX