Permalink
Browse files

Use double quotes in shell command for compatibility with Windows (#6).

  • Loading branch information...
1 parent a7aefe8 commit 85279dfe8d2a4c15aca265031043dbe556766d1e @nigma nigma committed Apr 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/veewee/provider/virtualbox/box/helper/natinterface.rb
@@ -4,7 +4,7 @@ module Virtualbox
module BoxCommand
def natinterface
- command="#{@vboxcmd} showvminfo --details --machinereadable '#{self.name}'"
+ command="#{@vboxcmd} showvminfo --details --machinereadable \"#{self.name}\""
shell_results=shell_exec("#{command}")
nic_id=shell_results.stdout.split(/\n/).grep(/^nic/).grep(/nat/)[0].split('=')[0][-1,1]

0 comments on commit 85279df

Please sign in to comment.