From a2a1c48cb87b0d30763845fb0c882bcd13945c5c Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sun, 18 Aug 2024 12:15:13 +0900 Subject: [PATCH] Fix for unexpected darwin architecture fallback --- bin/install | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/install b/bin/install index 17710cd..b018487 100755 --- a/bin/install +++ b/bin/install @@ -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" @@ -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}")"