diff options
author | Alexander Lobodzinski <alobodzinski@users.noreply.github.com> | 2015-09-21 14:04:44 +0300 |
---|---|---|
committer | Alexander Lobodzinski <alobodzinski@users.noreply.github.com> | 2015-09-21 14:04:44 +0300 |
commit | adc57330f6591d905a0216c80725692fa6b38eaa (patch) | |
tree | 84118c12347658864166b8fc5ec833d96b11958a /include/tests_webservers | |
parent | 14a79d8a63940a2e4683d7ac9354313201db68c5 (diff) |
Bugfix: nginx SSL detection worked on Linux only (only GNU sed understands \t on the command line)
Diffstat (limited to 'include/tests_webservers')
-rw-r--r-- | include/tests_webservers | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_webservers b/include/tests_webservers index cfe6dcce..2cfd10ed 100644 --- a/include/tests_webservers +++ b/include/tests_webservers @@ -422,7 +422,7 @@ # Remove temp file if [ ! "${TMPFILE}" = "" ]; then if [ -f ${TMPFILE} ]; then rm -f ${TMPFILE}; fi; fi N=0 - cat ${NGINX_CONF_LOCATION} | sed -e 's/^[ \t]*//' | grep -v "^#" | grep -v "^$" | sed 's/[\t]/ /g' | sed 's/ / /g' | sed 's/ / /g' >> ${TMPFILE} + cat ${NGINX_CONF_LOCATION} | sed -e 's/^[ ]*//' | grep -v "^#" | grep -v "^$" | sed 's/[ ]/ /g' | sed 's/ / /g' | sed 's/ / /g' >> ${TMPFILE} # Search for included configuration files (may include directories and wild cards) FIND=`grep "include" ${NGINX_CONF_LOCATION} | ${AWKBINARY} '{ if ($1=="include") { print $2 }}' | sed 's/;$//g'` for I in ${FIND}; do @@ -435,7 +435,7 @@ report "nginx_sub_conf_file=${J}" FileIsReadable ${J} if [ ${CANREAD} -eq 1 ]; then - FIND3=`cat ${J} | sed -e 's/^[ \t]*//' | grep -v "^#" | grep -v "^$" | sed 's/[\t]/ /g' | sed 's/ / /g' | sed 's/ / /g' >> ${TMPFILE}` + FIND3=`cat ${J} | sed -e 's/^[ ]*//' | grep -v "^#" | grep -v "^$" | sed 's/[ ]/ /g' | sed 's/ / /g' | sed 's/ / /g' >> ${TMPFILE}` else ReportException "${TEST_NO}:1" "Can not parse file ${J}, as it is not readable" fi |