From d89cff388486226c02a972be558424dca72061ff Mon Sep 17 00:00:00 2001 From: Corey Kosak Date: Wed, 8 Nov 2023 11:33:15 -0500 Subject: [PATCH] C++ Client: improve proto build script test for missing envars --- proto/proto-backplane-grpc/src/main/proto/build-cpp-protos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/proto-backplane-grpc/src/main/proto/build-cpp-protos.sh b/proto/proto-backplane-grpc/src/main/proto/build-cpp-protos.sh index 9b36346a61d..c24b0109a50 100755 --- a/proto/proto-backplane-grpc/src/main/proto/build-cpp-protos.sh +++ b/proto/proto-backplane-grpc/src/main/proto/build-cpp-protos.sh @@ -2,7 +2,7 @@ set -euxo pipefail -if [ -z "$PROTOC_BIN" ] && [ -z "$DHCPP" ]; then +if [ -z ${PROTOC_BIN:+x} ] && [ -z ${DHCPP:+x} ]; then echo "$0: At least one of the environment variables 'PROTOC_BIN' and 'DHCPP' must be defined, aborting." 1>&2 exit 1 fi