devopsgroup-io / vagrant-hostmanager

:pencil: A Vagrant plugin that manages hosts files within a multi-machine environment.
Mozilla Public License 2.0
1.46k stars 148 forks source link

Fix hang on systems with interactive rm #260

Closed simon-baatz closed 6 years ago

simon-baatz commented 6 years ago

Some systems configure rm to prompt when deleting a file as root user. On such systems, hostmanager hangs when updating the hosts file since commit 84d2f9e4be2 ("fix host file management to be windows and linux compatible").

Avoid this by adding the '-f' parameter to rm.