Skip to content

Commit

Permalink
check for parallels instead of docker
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjn committed Jul 19, 2024
1 parent d83e144 commit 435ad38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def vvv_is_docker_present()
if `docker version`
return true
end
return false
end

def vvv_is_parallels_present()
Expand Down Expand Up @@ -230,10 +231,10 @@ defaults['provider'] = 'virtualbox'

# if Arm default to docker then parallels
if Etc.uname[:version].include? 'ARM64'
if vvv_is_docker_present()
defaults['provider'] = 'docker'
else
if vvv_is_parallels_present()
defaults['provider'] = 'parallels'
else
defaults['provider'] = 'docker'
end
end

Expand Down

0 comments on commit 435ad38

Please sign in to comment.