neilpang 2021-08-05 20:12:42 +08:00
parent b21bd64764
commit 06580bf0e4
1 changed files with 2 additions and 2 deletions

View File

@ -3161,9 +3161,9 @@ _checkConf() {
FOUND_REAL_NGINX_CONF="$2"
return 0
fi
if cat "$2" | tr "\t" " " | grep "^ *include *;" >/dev/null; then
if cat "$2" | tr "\t" " " | grep "^ *include +.*;" >/dev/null; then
_debug "Try include files"
for included in $(cat "$2" | tr "\t" " " | grep "^ *include *;" | sed "s/include //" | tr -d " ;"); do
for included in $(cat "$2" | tr "\t" " " | grep "^ *include +.*;" | sed "s/include //" | tr -d " ;"); do
_debug "check included $included"
if ! _startswith "$included" "/" && _exists dirname; then
_relpath="$(dirname "$_c_file")"