Force move on linux systems

If the script is run as root, usually mv has an alias to ask for
overwriting. This force the overwriting.
This commit is contained in:
colandre 2014-05-14 16:06:12 +02:00
parent 21f7d23105
commit 78cf4b239d
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ module VagrantPlugins
move_cmd = 'mv -force'
else
realhostfile = '/etc/hosts'
move_cmd = 'mv'
move_cmd = 'mv -f'
end
# download and modify file with Vagrant-managed entries
file = @global_env.tmp_path.join("hosts.#{machine.name}")