Skip to content

Commit

Permalink
fix(bash): some logic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Dec 5, 2022
1 parent 944d8c7 commit cf89bf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build-openresty.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ then
RESTY_OPENSSL_VERSION=0
fi

if [ -z "$KONG_OPENSSL_VERSION"]
if [ -z "$KONG_OPENSSL_VERSION" ]
then
KONG_OPENSSL_VERSION=0
fi
Expand Down
3 changes: 1 addition & 2 deletions openresty-build-tools/kong-ngx-build
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ main() {
;;
--kong-openssl)
KONG_OPENSSL_VER=$2
OPENSSL_VER=$KONG_OPENSSL_VER
shift 2
;;
--openssl_sha)
Expand Down Expand Up @@ -189,7 +188,7 @@ main() {
fi

if [ "$OPENSSL_VER" = 0 -a "$SSL_PROVIDER" = "openssl" ]; then
if [ "$KONG_OPENSSL_VER" != 0 ]; then
if [ "$KONG_OPENSSL_VER" == 0 ]; then
show_usage
fatal "OpenSSL version not specified"
fi
Expand Down

0 comments on commit cf89bf5

Please sign in to comment.