From fa8bad20db100d95cf089b0b2d897c339327215c Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 16 Jul 2019 13:20:30 +0200 Subject: Use -n instead of ! -z --- include/tests_ldap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tests_ldap') diff --git a/include/tests_ldap b/include/tests_ldap index ae4a9599..0c6ae10e 100644 --- a/include/tests_ldap +++ b/include/tests_ldap @@ -66,7 +66,7 @@ fi done # Check if we found a valid location - if [ ! -z "${SLAPD_CONF_LOCATION}" ]; then + if [ -n "${SLAPD_CONF_LOCATION}" ]; then Display --indent 4 --text "- Checking slapd.conf" --result "${STATUS_FOUND}" --color GREEN else Display --indent 4 --text "- Checking slapd.conf" --result "${STATUS_NOT_FOUND}" --color YELLOW -- cgit v1.2.3