fix nginx mode

This commit is contained in:
neilpang committed 2021-08-01 15:44:14 +08:00
1 parent 89abad7980
commit 2b5e2d4760
1 file changed
+3 -3
+3 -3
View File
@@ -3161,14 +3161,14 @@ _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")"
_debug "_relpath" "$_relpath"
included="$_relpath/included"
included="$_relpath/$included"
fi
if _checkConf "$1" "$included"; then
return 0
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.