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:
parent
21f7d23105
commit
78cf4b239d
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue