Skip to content

Commit

Permalink
Merge pull request #4749 from Nirzak/Nirzak-patch-1
Browse files Browse the repository at this point in the history
Fixed grep pattern regex for nginx conf path
  • Loading branch information
Neilpang committed Sep 2, 2023
2 parents 8bdcd22 + 13d31ec commit 3f42487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3130,7 +3130,7 @@ _setNginx() {
_err "nginx command is not found."
return 1
fi
NGINX_CONF="$(nginx -V 2>&1 | _egrep_o "--conf-path=[^ ]* " | tr -d " ")"
NGINX_CONF="$(nginx -V 2>&1 | _egrep_o "\-\-conf-path=[^ ]* " | tr -d " ")"
_debug NGINX_CONF "$NGINX_CONF"
NGINX_CONF="$(echo "$NGINX_CONF" | cut -d = -f 2)"
_debug NGINX_CONF "$NGINX_CONF"
Expand Down

0 comments on commit 3f42487

Please sign in to comment.