From 1da72778176a07488b1efcb8c386655a05e8d7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Wed, 2 Feb 2022 19:25:52 +0100 Subject: [PATCH] Fix dowload-latest.sh according to the new name of the binary --- download-latest.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/download-latest.sh b/download-latest.sh index 4e88c1828..be0ff15e1 100644 --- a/download-latest.sh +++ b/download-latest.sh @@ -148,11 +148,18 @@ get_os() { get_archi() { architecture=$(uname -m) case "$architecture" in - 'x86_64' | 'amd64' | 'arm64') + 'x86_64' | 'amd64' ) archi='amd64' ;; + 'arm64') + if [ $os -eq 'macos' ]; then # MacOS M1 + archi='amd64' + else + archi='aarch64' + fi + ;; 'aarch64') - archi='armv8' + archi='aarch64' ;; *) return 1