From 78cf4b239db2c0a004aa64dae12472ab9e1ef7c7 Mon Sep 17 00:00:00 2001 From: colandre Date: Wed, 14 May 2014 16:06:12 +0200 Subject: [PATCH] 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. --- lib/vagrant-hostmanager/hosts_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-hostmanager/hosts_file.rb b/lib/vagrant-hostmanager/hosts_file.rb index 24d243d..e931621 100644 --- a/lib/vagrant-hostmanager/hosts_file.rb +++ b/lib/vagrant-hostmanager/hosts_file.rb @@ -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}")