Skip to content

Commit

Permalink
adding arm64 support for mac
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Sirchia <[email protected]>
  • Loading branch information
robertsirc committed Aug 8, 2024
1 parent 882bed7 commit 14c95ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/install_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ echo "Downloading and installing helm-mapkubeapis v${version} ..."

url=""
if [ "$(uname)" = "Darwin" ]; then
url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_darwin_amd64.tar.gz"
if [ "$(uname -m)" = "arm64" ]; then
url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_darwin_arm64.tar.gz"
else
url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_darwin_amd64.tar.gz"
fi
elif [ "$(uname)" = "Linux" ] ; then
if [ "$(uname -m)" = "aarch64" ] || [ "$(uname -m)" = "arm64" ]; then
url="https://github.com/helm/helm-mapkubeapis/releases/download/v${version}/helm-mapkubeapis_${version}_linux_arm64.tar.gz"
Expand Down

0 comments on commit 14c95ae

Please sign in to comment.