diff options
author | nelsonb%netscape.com <devnull@localhost> | 2000-10-05 04:03:53 +0000 |
---|---|---|
committer | nelsonb%netscape.com <devnull@localhost> | 2000-10-05 04:03:53 +0000 |
commit | 6d299008d7ea03b798743e19298a91039d109f4d (patch) | |
tree | 03e13a9674a2c2c9c5918553b02ffb4ceaaf8350 | |
parent | 654714c48fc83fc471c3089b9f9ab127f8d40aca (diff) | |
download | nss-hg-6d299008d7ea03b798743e19298a91039d109f4d.tar.gz |
If $HOME or $DOMSUF is undefined, put out an error message and stop,
instead of going on and producing complicated and meaningless results.
-rw-r--r-- | security/nss/tests/common/init.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/security/nss/tests/common/init.sh b/security/nss/tests/common/init.sh index d56b7a77a..ed2d3591c 100644 --- a/security/nss/tests/common/init.sh +++ b/security/nss/tests/common/init.sh @@ -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 |