From a9d7623674caba5a30a80e1adf601e05e8bdfe02 Mon Sep 17 00:00:00 2001 From: gberl002 Date: Wed, 23 Mar 2022 09:20:33 -0400 Subject: [PATCH] Fixing bug with M1 support logic --- quickstart/docker/image/ziti-cli-functions.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/quickstart/docker/image/ziti-cli-functions.sh b/quickstart/docker/image/ziti-cli-functions.sh index feec8db8b..cf805488a 100644 --- a/quickstart/docker/image/ziti-cli-functions.sh +++ b/quickstart/docker/image/ziti-cli-functions.sh @@ -135,10 +135,10 @@ function verifyZitiVersionExists { fi ZITI_ARCH="amd64" - if [[ "$(uname -a)" == *"arm"* ]] && [[ "${ZITI_OSTYPE}" != "darwin" ]]; then - ZITI_ARCH="arm" - else + if [[ "$(uname -a)" == *"arm"* ]] && [[ "${ZITI_OSTYPE}" == "darwin" ]]; then echo -e "$(YELLOW "WARN: It has been detected that you are using an Apple computer with ARM architecture. Deployment of Apple ARM architecture distributions is currently unsupported through git, the installer will pull darwin amd distribution instead.")" + elif [[ "$(uname -a)" == *"arm"* ]]; then + ZITI_ARCH="arm" fi unset ZITI_BINARIES_VERSION @@ -165,10 +165,10 @@ function getLatestZitiVersion { fi ZITI_ARCH="amd64" - if [[ "$(uname -a)" == *"arm"* ]] && [[ "${ZITI_OSTYPE}" != "darwin" ]]; then - ZITI_ARCH="arm" - else + if [[ "$(uname -a)" == *"arm"* ]] && [[ "${ZITI_OSTYPE}" == "darwin" ]]; then echo -e "$(YELLOW "WARN: It has been detected that you are using an Apple computer with ARM architecture. Deployment of Apple ARM architecture distributions is currently unsupported through git, the installer will pull darwin amd distribution instead.")" + elif [[ "$(uname -a)" == *"arm"* ]]; then + ZITI_ARCH="arm" fi unset ZITI_BINARIES_VERSION