We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a426b85 commit 02758e3Copy full SHA for 02758e3
lib/vagrant-hostmanager/hosts_file.rb
@@ -8,14 +8,13 @@ def update_guest(machine)
8
9
if (machine.communicate.test("uname -s | grep SunOS"))
10
realhostfile = '/etc/inet/hosts'
11
- move_cmd = 'mv'
+ move_cmd = 'mv'
12
elsif (machine.communicate.test("test -d $Env:SystemRoot"))
13
- realhostfile = "#{ENV['WINDIR']}\\System32\\drivers\\etc\\hosts"
14
-
15
- move_cmd = 'mv -force'
+ realhostfile = "#{ENV['WINDIR']}\\System32\\drivers\\etc\\hosts"
+ move_cmd = 'mv -force'
16
else
17
realhostfile = '/etc/hosts'
18
19
end
20
# download and modify file with Vagrant-managed entries
21
file = @global_env.tmp_path.join("hosts.#{machine.name}")
0 commit comments