Use a POSIX implementation to check for substring

This works with all shells, even busybox.
This commit is contained in:
Nicolas CARPi 2020-03-05 21:42:54 +01:00
parent 0593c69f2f
commit 600cb84310
1 changed files with 5 additions and 1 deletions

View File

@ -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