fixed regex for nginx conf path

Fixed the regex for nginx path configuration to fix grep: unrecognized option error
This commit is contained in:
Nirjas Jakilim authored and GitHub committed 2023-08-21 12:28:50 +06:00
1 parent 0da839cce3
commit 13d31ecb7f
1 file changed
+1 -1
+1 -1
View File
@@ -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"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.