Skip to content

Commit

Permalink
Use arm64 if arm64 (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorinasub17 authored Aug 10, 2021
1 parent 938e3b3 commit a376f14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bootstrap-gruntwork-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion gruntwork-install
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a376f14

Please sign in to comment.