box/package: Take only files while packaging the new box

Fixes GH-5657
This commit is contained in:
Mikhail Zholobov 2015-04-30 16:07:48 +03:00
parent bdb945cd1b
commit 079e06cd09
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)