fix: ignore extra strings on the nginx ubuntu version
This commit is contained in:
committed by
GitHub
parent
933a174dfd
commit
0033a52e28
@@ -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")"
|
||||
|
||||
Reference in New Issue
Block a user