From: Howard Chu Date: Fri, 19 Oct 2007 04:17:28 +0000 (+0000) Subject: ITS#5193 don't use "cd; pwd" to get the absolute path of schema dir X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~495 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f3c82a78a0c6dd1ae5ac3621d17767e1605ef9a7;p=openldap ITS#5193 don't use "cd; pwd" to get the absolute path of schema dir --- diff --git a/tests/scripts/defines.sh b/tests/scripts/defines.sh index ecbb373d62..e2e611554d 100755 --- a/tests/scripts/defines.sh +++ b/tests/scripts/defines.sh @@ -52,7 +52,10 @@ PROGDIR=./progs DATADIR=${USER_DATADIR-./testdata} TESTDIR=${USER_TESTDIR-$TESTWD/testrun} SCHEMADIR=${USER_SCHEMADIR-./schema} -ABS_SCHEMADIR=`(cd $SCHEMADIR; pwd)` +case "$SCHEMADIR" in +.*) ABS_SCHEMADIR="$TESTWD/$SCHEMADIR" ;; +*) ABS_SCHEMADIR="$SCHEMADIR" ;; +esac DBDIR1A=$TESTDIR/db.1.a DBDIR1B=$TESTDIR/db.1.b