Skip to content

Commit 78fb469

Browse files
authored
fix(distribution): Fix architecture detection for ARMv7 (#17484)
The patterns were incorrectly matching the the OS for ARMv7 builds which have extra chacters indicating platform support. Fixes: #17450 Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com> Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
1 parent 541bb00 commit 78fb469

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

distribution/install.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ install_from_archive() {
139139
assert_nz "$_arch" "arch"
140140

141141
local _archive_arch=""
142+
142143
case "$_arch" in
143144
x86_64-apple-darwin)
144145
_archive_arch=$_arch
@@ -152,13 +153,13 @@ install_from_archive() {
152153
aarch64-*linux*)
153154
_archive_arch="aarch64-unknown-linux-musl"
154155
;;
155-
armv7-*linux*-gnu)
156+
armv7-*linux*-gnueabihf)
156157
_archive_arch="armv7-unknown-linux-gnueabihf"
157158
;;
158-
armv7-*linux*-musl)
159+
armv7-*linux*-musleabihf)
159160
_archive_arch="armv7-unknown-linux-musleabihf"
160161
;;
161-
*)
162+
*)
162163
err "unsupported arch: $_arch"
163164
;;
164165
esac

0 commit comments

Comments
 (0)