Merge pull request #5658 from legal90/fix-repackage
Fix issue #5657: Take only files while box repackage
This commit is contained in:
commit
72ea1d3e64
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue