mirror of
https://github.com/openziti/ziti.git
synced 2026-10-13 23:59:53 +00:00
Fixing bug with M1 support logic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user