Fixing bug with M1 support logic
@@ -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
