From 3f759069b1e93e2f21e3c3f53aa54c90f779e811 Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Fri, 8 Oct 2021 18:33:26 +0200 Subject: [PATCH] Support nginx includes ending in wildcard `*` This fixes cases like `include sites-enabled/*;` which is, e.g., the default config in Ubuntu. --- acme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index a5ac9e47..19f2bf51 100755 --- a/acme.sh +++ b/acme.sh @@ -3147,7 +3147,7 @@ _checkConf() { _d="$1" _c_file="$2" _debug "Start _checkConf from:$_c_file" - if [ ! -f "$2" ] && ! echo "$2" | grep '*$' >/dev/null && echo "$2" | grep '*' >/dev/null; then + if [ ! -f "$2" ] && echo "$2" | grep '*' >/dev/null; then _debug "wildcard" for _w_f in $2; do if [ -f "$_w_f" ] && _checkConf "$1" "$_w_f"; then