X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=openssl-c_rehash.sh;h=75a774945cf75a4a35f96cc548199e8c1270a68f;hb=e186dae06e33dbdc30417e751fd338d64989418b;hp=56a54b595a7f05d1f6ee67457dca36fcf4f88da3;hpb=c4e4190111c5180b5604a580b0d8f7b16f0848e2;p=packages%2Fopenssl.git diff --git a/openssl-c_rehash.sh b/openssl-c_rehash.sh index 56a54b5..75a7749 100644 --- a/openssl-c_rehash.sh +++ b/openssl-c_rehash.sh @@ -165,11 +165,11 @@ 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} + export OPENSSL fi # fix paths @@ -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