Skip to content

Commit

Permalink
fixed regex for nginx conf path
Browse files Browse the repository at this point in the history
Fixed the regex for nginx path configuration to fix grep: unrecognized option error
  • Loading branch information
Nirzak authored Aug 21, 2023
1 parent 0da839c commit 13d31ec
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 13d31ec

Please sign in to comment.