Skip to content

Commit cf89bf5

Browse files
committed
fix(bash): some logic fixes
1 parent 944d8c7 commit cf89bf5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

build-openresty.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ then
6767
RESTY_OPENSSL_VERSION=0
6868
fi
6969

70-
if [ -z "$KONG_OPENSSL_VERSION"]
70+
if [ -z "$KONG_OPENSSL_VERSION" ]
7171
then
7272
KONG_OPENSSL_VERSION=0
7373
fi

openresty-build-tools/kong-ngx-build

+1-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ main() {
7070
;;
7171
--kong-openssl)
7272
KONG_OPENSSL_VER=$2
73-
OPENSSL_VER=$KONG_OPENSSL_VER
7473
shift 2
7574
;;
7675
--openssl_sha)
@@ -189,7 +188,7 @@ main() {
189188
fi
190189

191190
if [ "$OPENSSL_VER" = 0 -a "$SSL_PROVIDER" = "openssl" ]; then
192-
if [ "$KONG_OPENSSL_VER" != 0 ]; then
191+
if [ "$KONG_OPENSSL_VER" == 0 ]; then
193192
show_usage
194193
fatal "OpenSSL version not specified"
195194
fi

0 commit comments

Comments
 (0)