Merge pull request #5658 from legal90/fix-repackage

Fix issue #5657: Take only files while box repackage
This commit is contained in:
Seth Vargo 2015-05-30 12:03:50 -07:00
commit 72ea1d3e64
1 changed files with 1 additions and 1 deletions

View File

@ -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)