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.
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 downloadgoss-linux-arm
(which is a 32-bit binary).With this change it downloads the correct binaries:
aarch32
->goss-linux-arm
aarch64
as well asarm64
->goss-linux-arm64
(which will exist after merging https://github.com/aelsabbahy/goss/pull/737)As mentioned in the other PR there might be more possible return values of
uname -m
for a 32-bit system (e.g. justarm
orarmv7
) but I can't test it currently.