From af60a2463a3ba8fa34ffb7a34da3eab3e0a7a81a Mon Sep 17 00:00:00 2001 From: mslifcak Date: Tue, 23 May 2017 08:56:25 -0400 Subject: 250 fixes (#393) * restore use of lshw * add ROOTDIR to restore lost PHP file ref * refactor certificate search to benefit older "find" command --- include/tests_crypto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tests_crypto') diff --git a/include/tests_crypto b/include/tests_crypto index cbbda9d7..7ae300f1 100644 --- a/include/tests_crypto +++ b/include/tests_crypto @@ -44,7 +44,7 @@ if [ ${CANREAD} -eq 1 ]; then LogText "Result: found directory ${DIR}" # Search for CRT files - sFINDCRTS=$(${FINDBINARY} ${DIR} -name "*.crt" -or -name "*.pem" -or -name "cert*" -and -type f -print 2> /dev/null) + sFINDCRTS=$(${FINDBINARY} ${DIR} -type f 2> /dev/null | ${EGREPBINARY} ".crt$|.pem$|^cert") if [ ! -z "${sFINDCRTS}" ]; then for FILE in ${sFINDCRTS}; do FileIsReadable ${FILE} -- cgit v1.2.3