From 600cb84310b0b97aad7184b5224fdc3ba18a04be Mon Sep 17 00:00:00 2001 From: Nicolas CARPi Date: Thu, 5 Mar 2020 21:42:54 +0100 Subject: [PATCH] Use a POSIX implementation to check for substring This works with all shells, even busybox. --- include/tests_php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/tests_php b/include/tests_php index 6e4d44f9..120b7dcb 100644 --- a/include/tests_php +++ b/include/tests_php @@ -292,7 +292,11 @@ FOUND=0 for FILE in ${PHPINI_ALLFILES}; do # Don't look at this setting in cli configuration - if [[ ${FILE} == *"/cli/"* ]]; then continue; fi + case "${FILE}" in + */cli/*) + continue + ;; + esac LogText "Test: Checking file ${FILE}" FIND=$(${EGREPBINARY} -i 'expose_php.*(on|yes|1)' ${FILE} | ${GREPBINARY} -v '^;') if HasData "${FIND}"; then