From 6555e72f39097b9c7dd62f77bc47986a1df5fa01 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 14 Feb 2014 01:43:59 -0200 Subject: [PATCH] Fix npm bucket npm is the only bucket that uses this method --- lib/vagrant-cachier/bucket.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-cachier/bucket.rb b/lib/vagrant-cachier/bucket.rb index 5aa7cb5..1e6852c 100644 --- a/lib/vagrant-cachier/bucket.rb +++ b/lib/vagrant-cachier/bucket.rb @@ -62,7 +62,7 @@ module VagrantPlugins comm.execute("mkdir -p #{bucket_path}") unless comm.test("test -L #{guest_path}") comm.execute("rm -rf #{guest_path}") - comm.execute("mkdir -p `dirname #{guest_path}`") if create_parent + comm.execute("mkdir -p `dirname #{guest_path}`") comm.execute("ln -s #{bucket_path} #{guest_path}") end end