Skip to content

Commit

Permalink
Fix for unexpected darwin architecture fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Aug 18, 2024
1 parent be5528c commit a2a1c48
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ _get_arch() {
local arch; arch=$(uname -m)
case $arch in
armv*) arch="armv6hf";;
aarch64) arch="aarch64";;
aarch64 | arm64) arch="aarch64";;
x86_64) arch="x86_64";;
esac
echo "$arch"
Expand Down Expand Up @@ -48,8 +48,6 @@ install() {
local -r version_parts=(${version//./ })
if [ "${version_parts[0]}" -eq 0 ] && [ "${version_parts[1]}" -lt 10 ]; then
test "$platform" == "darwin" && arch="x86_64"
else
test "$platform" == "darwin" && arch="aarch64"
fi

local -r download_url="$(_get_download_url "${version}" "${platform}" "${arch}")"
Expand Down

0 comments on commit a2a1c48

Please sign in to comment.