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.
2 parents 81079f7 + 33e23bf commit eddb711Copy full SHA for eddb711
lib/vagrant-hostmanager/hosts_file/updater.rb
@@ -45,7 +45,7 @@ def update_guest(machine)
45
if windir
46
machine.communicate.sudo("mv -force /tmp/hosts.#{machine.name} #{realhostfile}")
47
else
48
- machine.communicate.sudo("cat /tmp/hosts.#{machine.name} > #{realhostfile} && rm /tmp/hosts.#{machine.name}")
+ machine.communicate.sudo("cat /tmp/hosts.#{machine.name} > #{realhostfile} && rm -f /tmp/hosts.#{machine.name}")
49
end
50
51
0 commit comments