fix nginx mode
The plus symbol (+) is not standard regular expressions, use extended regular expressions(`grep -E`) instead.
This commit is contained in:
parent
b335840f97
commit
82a6e6ce0f
4
acme.sh
4
acme.sh
@ -3163,9 +3163,9 @@ _checkConf() {
|
|||||||
FOUND_REAL_NGINX_CONF="$2"
|
FOUND_REAL_NGINX_CONF="$2"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if cat "$2" | tr "\t" " " | grep "^ *include *.*;" >/dev/null; then
|
if cat "$2" | tr "\t" " " | grep -E "^ *include +.*;" >/dev/null; then
|
||||||
_debug "Try include files"
|
_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"
|
_debug "check included $included"
|
||||||
if ! _startswith "$included" "/" && _exists dirname; then
|
if ! _startswith "$included" "/" && _exists dirname; then
|
||||||
_relpath="$(dirname "$_c_file")"
|
_relpath="$(dirname "$_c_file")"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user