From c4bb71d16b5f6a44dd3663985a64ae9dd9de4480 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 8 Jul 2010 14:06:42 +0000 Subject: [PATCH] - hardcode openssl path (make which dependency optional) Changed files: openssl-c_rehash.sh -> 1.7 --- openssl-c_rehash.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openssl-c_rehash.sh b/openssl-c_rehash.sh index 90da18f..75a7749 100644 --- a/openssl-c_rehash.sh +++ b/openssl-c_rehash.sh @@ -165,9 +165,9 @@ hash_dir() # choose the name of an ssl application if [ -n "${OPENSSL}" ] then - SSL_CMD=${OPENSSL} + SSL_CMD=$(which ${OPENSSL} 2>/dev/null) else - SSL_CMD=openssl + SSL_CMD=/usr/bin/openssl OPENSSL=${SSL_CMD} export OPENSSL fi @@ -177,7 +177,7 @@ PATH=${PATH}:${DIR}/bin export PATH # confirm existance/executability of ssl command -if ! [ -x $( which ${SSL_CMD} ) ] +if ! [ -x ${SSL_CMD} ] then echo "${0}: rehashing skipped ('openssl' program not available)" >&2 exit 0 -- 2.43.0