fix: ignore extra strings on the nginx ubuntu version

This commit is contained in:
Jose Diaz-Gonzalez
2025-10-27 00:19:41 -04:00
committed by GitHub
parent 933a174dfd
commit 0033a52e28

View File

@@ -340,7 +340,7 @@ nginx_build_config() {
if [[ -z "$NGINX_LOCATION" ]]; then
exit 1
fi
NGINX_VERSION="$("$NGINX_LOCATION" -v 2>&1 | cut -d'/' -f 2)"
NGINX_VERSION="$("$NGINX_LOCATION" -v 2>&1 | cut -d'/' -f 2 | awk '{print $1}')"
# DEPRECATED: Remove me at 1.0.0
SPDY_SUPPORTED="false"
TLS13_SUPPORTED="$(is_tls13_available "$NGINX_VERSION")"