- hardcode openssl path (make which dependency optional) auto/ti/openssl-1_0_0a-1
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 8 Jul 2010 14:06:42 +0000 (14:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    openssl-c_rehash.sh -> 1.7

openssl-c_rehash.sh

index 90da18fb947592403d04863deb625b08dbb91fd4..75a774945cf75a4a35f96cc548199e8c1270a68f 100644 (file)
@@ -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
This page took 0.037828 seconds and 4 git commands to generate.