Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Don't error out, when vboxmanage isn't found, fixes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
hanikesn committed Jul 18, 2017
1 parent 139df1f commit f13e608
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Vagrantfile.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
vboxVersion = `vboxmanage --version`
begin
vboxVersion = `vboxmanage --version`

if Gem::Version.new(vboxVersion) < Gem::Version.new('5.1')
throw "VirtualBox version too old. Please upgrade to 5.1"
if Gem::Version.new(vboxVersion) < Gem::Version.new('5.1')
throw "VirtualBox version too old. Please upgrade to 5.1"
end
rescue
print "Could not determine Virtual Box version. Continuing"
end

Vagrant.configure(2) do |config|
Expand Down

0 comments on commit f13e608

Please sign in to comment.