If $HOME or $DOMSUF is undefined, put out an error message and stop,

instead of going on and producing complicated and meaningless results.


git-svn-id: svn://10.0.0.236/trunk@80418 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nelsonb%netscape.com
2000-10-05 04:03:53 +00:00
parent 93ab79c35a
commit 42d9cfbecb

View File

@@ -28,6 +28,13 @@ if [ ! -d ${TESTDIR} ]; then
mkdir -p ${TESTDIR}
fi
if [ -z "${HOST}" ]; then
echo "HOST environment variable is not defined."; exit 1
fi
if [ -z "${DOMSUF}" ]; then
echo "DOMSUF environment variable is not defined."; exit 1
fi
if [ ! -s "${HOSTDIR}" ]; then
version=1
if [ -f ${TESTDIR}/${HOST} ]; then