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
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
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