Commit af7e0400 authored by Ed Reel's avatar Ed Reel

Fix crew command to include hidden files in the archive

parent d4d5a7d7
...@@ -339,7 +339,8 @@ def unpack (meta) ...@@ -339,7 +339,8 @@ def unpack (meta)
end end
if meta[:source] == true if meta[:source] == true
# Check the number of directories in the archive # 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 if entries.length == 0
abort "Empty archive: #{meta[:filename]}".lightred abort "Empty archive: #{meta[:filename]}".lightred
elsif entries.length == 1 && File.directory?(entries.first) 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