We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac9618c commit 0e80058Copy full SHA for 0e80058
lib/puppet_forge_server/utils/archiver.rb
@@ -24,7 +24,7 @@ def read_from_archive(archive, name_regex)
24
tar.rewind
25
files = {}
26
tar.each do |obj|
27
- files[obj.full_name] = obj.read if obj.full_name =~ name_regex
+ files[obj.full_name] = obj.read if obj.file? && obj.full_name =~ name_regex
28
end
29
return files unless files.empty?
30
raise "Given name #{name_regex} not found in #{archive}"
0 commit comments