Skip to content

Commit

Permalink
dev: util/build.sh: fixed command line argument validation and enviro…
Browse files Browse the repository at this point in the history
…nment variable usage.
  • Loading branch information
jiahao committed Jul 5, 2024
1 parent 65014a8 commit d923dc1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions util/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ version=$1
force=$2
home=~

if [ -z "$version" ]; then
echo "Usage: $0 <nginx-version> [force]"
exit 1
fi

add_http3_module=--with-http_v3_module
answer=`$root/util/ver-ge "$NGINX_VERSION" 1.25.1`
answer=`$root/util/ver-ge "$version" 1.25.1`
if [ "$OPENSSL_VER" = "1.1.0l" ] || [ "$answer" = "N" ]; then
add_http3_module=""
fi

disable_pcre2=--without-pcre2
answer=`$root/util/ver-ge "$NGINX_VERSION" 1.25.1`
answer=`$root/util/ver-ge "$version" 1.25.1`
if [ "$answer" = "N" ] || [ "$USE_PCRE2" = "Y" ]; then
disable_pcre2=""
fi
Expand Down

0 comments on commit d923dc1

Please sign in to comment.