Skip to content

Commit

Permalink
exec java gives -1 exit code on windows, running java -version is bet…
Browse files Browse the repository at this point in the history
…ter check
  • Loading branch information
jedi4ever committed Apr 26, 2012
1 parent 64dd97e commit 5643fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/veewee/provider/virtualbox/box/build.rb
Expand Up @@ -7,7 +7,7 @@ def build(options={})
download_vbox_guest_additions_iso(options)

unless definition.floppy_files.nil?
unless self.shell_exec("java").status == 0
unless self.shell_exec("java -version").status == 0
raise Veewee::Error,"This box contains floppyfiles, to create it you require to have java installed or have it in your path"
end
end
Expand Down

0 comments on commit 5643fab

Please sign in to comment.