Skip to content

Commit

Permalink
Adding fix for 'install on debian arm64 fails (tries to use aarch64 i…
Browse files Browse the repository at this point in the history
…nstead of arm64)'
  • Loading branch information
nikhilsbhat committed Oct 29, 2023
1 parent a0056a3 commit 5f4b9d2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions install-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,25 @@ function exit_trap() {
exit $result
}

function setOSArch() {
arch=$1

case "$arch" in
"aarch64")
echo "arm64"
;;
*)
echo $arch
;;
esac
}

function download_plugin() {
osName=$(uname -s)
osArch=$(uname -m)

osArch=$(setOSArch $osArch)

OUTPUT_BASENAME=helm-drift
version=$(grep version "$HELM_PLUGIN_DIR/plugin.yaml" | cut -d'"' -f2)

Expand Down

0 comments on commit 5f4b9d2

Please sign in to comment.