From 079e06cd093809c27ea5e42fcfd85b8b4cf86e7c Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Thu, 30 Apr 2015 16:07:48 +0300 Subject: [PATCH] box/package: Take only files while packaging the new box Fixes GH-5657 --- lib/vagrant/box.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/box.rb b/lib/vagrant/box.rb index 537c94e2a..ce829870a 100644 --- a/lib/vagrant/box.rb +++ b/lib/vagrant/box.rb @@ -173,7 +173,7 @@ module Vagrant Util::SafeChdir.safe_chdir(@directory) do # Find all the files in our current directory and tar it up! - files = Dir.glob(File.join(".", "**", "*")) + files = Dir.glob(File.join(".", "**", "*")).select { |f| File.file?(f) } # Package! Util::Subprocess.execute("bsdtar", "-czf", path.to_s, *files)