fix nginx mode
Signed-off-by: MrThanlon <i@anclx.cc>
This commit is contained in:
parent
82a6e6ce0f
commit
aab9a5c2ec
2
acme.sh
2
acme.sh
@ -3165,7 +3165,7 @@ _checkConf() {
|
|||||||
fi
|
fi
|
||||||
if cat "$2" | tr "\t" " " | grep -E "^ *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 -E "^ *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