goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.53k stars 470 forks source link

Install the correct binary for 32-bit and 64-bit arm machines #756

Closed linki closed 2 years ago

linki commented 2 years ago

Following up on https://github.com/aelsabbahy/goss/pull/737#issuecomment-1030903417.

This change was split out from the original PR.

The install.sh in its current version didn't download the correct binary. If "$(uname -m)" = "aarch64" (meaning we are a 64-bit system) it would download goss-linux-arm (which is a 32-bit binary).

With this change it downloads the correct binaries:

As mentioned in the other PR there might be more possible return values of uname -m for a 32-bit system (e.g. just arm or armv7) but I can't test it currently.