Commit 2c8141ea authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #736 from uberhacker/fix-crew-archive-hidden-files

Fix crew command to include hidden files in the archive
parents b3b07a59 af7e0400
......@@ -347,7 +347,8 @@ def unpack (meta)
end
if meta[:source] == true
# Check the number of directories in the archive
entries=Dir["#{extract_dir}/*"]
entries = Dir["#{extract_dir}/*"]
entries = Dir["#{extract_dir}/."] if entries.empty?
if entries.length == 0
abort "Empty archive: #{meta[:filename]}".lightred
elsif entries.length == 1 && File.directory?(entries.first)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment