diff --git a/build-openresty.sh b/build-openresty.sh index 6762faca..0498b0b9 100755 --- a/build-openresty.sh +++ b/build-openresty.sh @@ -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 diff --git a/openresty-build-tools/kong-ngx-build b/openresty-build-tools/kong-ngx-build index acce4da7..e969a228 100755 --- a/openresty-build-tools/kong-ngx-build +++ b/openresty-build-tools/kong-ngx-build @@ -70,7 +70,6 @@ main() { ;; --kong-openssl) KONG_OPENSSL_VER=$2 - OPENSSL_VER=$KONG_OPENSSL_VER shift 2 ;; --openssl_sha) @@ -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