]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9209 - Use portable command instead of which for determining if binaries are...
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 3 Sep 2020 18:10:30 +0000 (18:10 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 4 Sep 2020 22:06:15 +0000 (22:06 +0000)
tests/scripts/test067-tls
tests/scripts/test072-dsee-sync
tests/scripts/test075-dsee-persist

index d85eadaca13454f7807c1dc77cedb1f9fbcebf03..b4483261a5664be7298cd0e65b27671e882ec389 100755 (executable)
@@ -21,9 +21,9 @@ if test $WITH_TLS = no ; then
         exit 0
 fi
 
-openssl="$(which openssl 2>/dev/null)"
-certtool="$(which certtool 2>/dev/null)"
-base64="$(which base64 2>/dev/null)"
+openssl="$(command -v openssl 2>/dev/null)"
+certtool="$(command -v certtool 2>/dev/null)"
+base64="$(command -v base64 2>/dev/null)"
 
 mkdir -p $TESTDIR $DBDIR1
 cp -r $DATADIR/tls $TESTDIR
index 1e351d5f97f74e9cf522df65c5fca131b48cb637..976dc16690321e24623b345217897bd394c46a87 100755 (executable)
@@ -16,7 +16,8 @@
 echo "running defines.sh"
 . $SRCDIR/scripts/defines.sh
 
-if test ! "`which dsadm`"; then
+DSADM=`command -v dsadm`
+if test -z "$DSADM"; then
        echo "DSEE dsadm not in path, test skipped"
        exit 0
 fi 
index dbf21443370e93a3e54ef39197c2745911a31300..576077d8e84b5ac2fb7cc161cd7d2d5366c5661f 100755 (executable)
@@ -18,7 +18,8 @@ echo "running defines.sh"
 
 OPATTRS="creatorsName createTimestamp modifiersName modifyTimestamp"
 
-if test ! "`which dsadm`"; then
+DSADM=`command -v dsadm`
+if test -z "$DSADM"; then
        echo "DSEE dsadm not in path, test skipped"
        exit 0
 fi