winder update
This commit is contained in:
parent
18d3083f07
commit
debf5e732a
|
@ -10,11 +10,9 @@ module VagrantPlugins
|
||||||
realhostfile = '/etc/inet/hosts'
|
realhostfile = '/etc/inet/hosts'
|
||||||
move_cmd = 'mv'
|
move_cmd = 'mv'
|
||||||
elsif (machine.communicate.test("test -d $Env:SystemRoot"))
|
elsif (machine.communicate.test("test -d $Env:SystemRoot"))
|
||||||
windir = nil
|
windir = ""
|
||||||
machine.communicate.execute("echo %SYSTEMROOT%", {:shell => :cmd}) do |type, contents|
|
machine.communicate.execute("echo %SYSTEMROOT%", {:shell => :cmd}) do |type, contents|
|
||||||
if type == :stdout
|
windir << contents.gsub("\r\n", '') if type == :stdout
|
||||||
windir = contents.gsub("\r\n", '')
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
realhostfile = "#{windir}\\System32\\drivers\\etc\\hosts"
|
realhostfile = "#{windir}\\System32\\drivers\\etc\\hosts"
|
||||||
move_cmd = 'mv -force'
|
move_cmd = 'mv -force'
|
||||||
|
|
Loading…
Reference in New Issue