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