Merge pull request #260 from Telekom-PD/fix_hosts_update_hang

Fix hang on systems with interactive rm
This commit is contained in:
Seth Reeser 2018-04-17 17:46:37 -04:00 committed by GitHub
commit eddb711cd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ module VagrantPlugins
if windir
machine.communicate.sudo("mv -force /tmp/hosts.#{machine.name} #{realhostfile}")
else
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}")
end
end