From a376f14406e9ab565c9149aacec9090e227946f9 Mon Sep 17 00:00:00 2001 From: Yoriyasu Yano <430092+yorinasub17@users.noreply.github.com> Date: Tue, 10 Aug 2021 09:59:00 -0500 Subject: [PATCH] Use arm64 if arm64 (#67) --- bootstrap-gruntwork-installer.sh | 4 +++- gruntwork-install | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bootstrap-gruntwork-installer.sh b/bootstrap-gruntwork-installer.sh index b898b1e..c252c61 100755 --- a/bootstrap-gruntwork-installer.sh +++ b/bootstrap-gruntwork-installer.sh @@ -132,7 +132,9 @@ function get_os_arch { function get_os_arch_gox_format { local -r arch=$(get_os_arch) - if string_contains "$arch" "64"; then + if string_contains "$arch" "arm64"; then + echo "arm64" + elif string_contains "$arch" "64"; then echo "amd64" elif string_contains "$arch" "386"; then echo "386" diff --git a/gruntwork-install b/gruntwork-install index 7b9c0f4..9e51ff1 100755 --- a/gruntwork-install +++ b/gruntwork-install @@ -209,7 +209,9 @@ function string_contains { function get_os_arch_gox_format { local -r arch=$(get_os_arch) - if string_contains "$arch" "64"; then + if string_contains "$arch" "arm64"; then + echo "arm64" + elif string_contains "$arch" "64"; then echo "amd64" elif string_contains "$arch" "386"; then echo "386"