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.
2 parents a47ccf4 + 0e80058 commit 2ca11c5Copy full SHA for 2ca11c5
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