Skip to content

Commit

Permalink
fix: convert target architecture to provided go arch release (#130)
Browse files Browse the repository at this point in the history
There is a mistake for arm 32bit architectures. This patch correct
converting the architecture of an arm 32bit system to a the matching go
arm release on github.
  • Loading branch information
volker-raschek committed Feb 3, 2022
1 parent fd9221b commit 2e5792e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/install_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@ echo "Downloading and installing helm-push v${version} ..."

url=""

# convert architecture of the target system to a compatible GOARCH value.
# Otherwise failes to download of the plugin from github, because the provided
# architecture by `uname -m` is not part of the github release.
arch=""
case $(uname -m) in
x86_64)
arch="amd64"
;;
arm*)
arch="arm"
armv6*)
arch="armv6"
;;
# match every arm processor version like armv7h, armv7l and so on.
armv7*)
arch="armv7"
;;
aarch64)
arch="arm64"
Expand Down

0 comments on commit 2e5792e

Please sign in to comment.