From 707acecb6b7bb0693c5422ca9d5ee59493144c88 Mon Sep 17 00:00:00 2001 From: Fabian Ruff Date: Wed, 16 Apr 2014 10:46:16 +0200 Subject: [PATCH] Avoid removal of install_path directory This is a pull request for #151. Removing the install_dir during each "librarian-chef install" breaks the shared folder of vagrant for at least the lxc and fusion provider. --- lib/librarian/action/install.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librarian/action/install.rb b/lib/librarian/action/install.rb index bea908bb..d3ad854c 100644 --- a/lib/librarian/action/install.rb +++ b/lib/librarian/action/install.rb @@ -40,7 +40,9 @@ def perform_installation end def create_install_path - install_path.rmtree if install_path.exist? + if install_path.exist? + FileUtils.rm_r install_path.children + end install_path.mkpath end