Fix dowload-latest.sh according to the new name of the binary

This commit is contained in:
Clémentine Urquizar 2022-02-02 19:25:52 +01:00
parent c71c95feb0
commit 1da7277817
No known key found for this signature in database
GPG Key ID: D8E7CC7422E77E1A

View File

@ -148,11 +148,18 @@ get_os() {
get_archi() { get_archi() {
architecture=$(uname -m) architecture=$(uname -m)
case "$architecture" in case "$architecture" in
'x86_64' | 'amd64' | 'arm64') 'x86_64' | 'amd64' )
archi='amd64' archi='amd64'
;; ;;
'arm64')
if [ $os -eq 'macos' ]; then # MacOS M1
archi='amd64'
else
archi='aarch64'
fi
;;
'aarch64') 'aarch64')
archi='armv8' archi='aarch64'
;; ;;
*) *)
return 1 return 1