From: Nick Porter Date: Tue, 30 Aug 2022 15:48:32 +0000 (+0100) Subject: Better way to check test server is defined X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8775542927a03aaf28449437ef8899d1a41b1ebf;p=thirdparty%2Ffreeradius-server.git Better way to check test server is defined --- diff --git a/src/tests/ldap_sync/active_directory/01_add.sh b/src/tests/ldap_sync/active_directory/01_add.sh index 4ac75eb9d7d..f154a407a6c 100755 --- a/src/tests/ldap_sync/active_directory/01_add.sh +++ b/src/tests/ldap_sync/active_directory/01_add.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [ "$ACTIVE_DIRECTORY_TEST_SERVER " = " " ]; then +if [ -z $ACTIVE_DIRECTORY_TEST_SERVER ]; then echo ACTIVE_DIRECTORY_TEST_SERVER not defined exit 1; fi diff --git a/src/tests/ldap_sync/active_directory/02_del.sh b/src/tests/ldap_sync/active_directory/02_del.sh index 44bdb90d235..90115aad6eb 100755 --- a/src/tests/ldap_sync/active_directory/02_del.sh +++ b/src/tests/ldap_sync/active_directory/02_del.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [ "$ACTIVE_DIRECTORY_TEST_SERVER " = " " ]; then +if [ -z $ACTIVE_DIRECTORY_TEST_SERVER ]; then echo ACTIVE_DIRECTORY_TEST_SERVER not defined exit 1; fi