From cc5cf22140065f2798ee2a4dcc4f279c813e55ac Mon Sep 17 00:00:00 2001 From: leslieluyu Date: Mon, 4 Jul 2022 16:45:14 +0800 Subject: [PATCH] Update build.sh fix the bug https://github.com/GoogleCloudPlatform/cloud-profiler-java/issues/48 it's a logical error --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index ec5ccbd9c..97099397f 100755 --- a/build.sh +++ b/build.sh @@ -38,7 +38,7 @@ while getopts ":d:m:v:" opt; do m) TARGET=$OPTARG if [[ "${TARGET}" == "arm64" ]]; then - if [[ "${MACHINE_TYPE}" != "aarch64" ]] || [[ "${MACHINE_TYPE}" != "arm64" ]]; then + if [[ "${MACHINE_TYPE}" != "aarch64" ]] && [[ "${MACHINE_TYPE}" != "arm64" ]]; then echo "-m arm64 is supported only when running on an ARM64 system." exit; fi