Skip to content

Commit

Permalink
Swap cpu architecture test (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjn authored Jan 4, 2022
1 parent f391736 commit 272446b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/vagrant-goodhosts/GoodHosts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ def get_os_binary
if OS.windows?
return 'cli.exe'
elsif OS.mac?
type = system('uname -m')
if type == 'x86_64'
return 'cli_amd64_osx'
else
if Etc.uname[:version].include? 'ARM64'
return 'cli_arm64_osx'
else
return 'cli_amd64_osx'
end
elsif OS.linux?
return 'cli'
Expand Down

0 comments on commit 272446b

Please sign in to comment.