Skip to content

Commit

Permalink
Limit glob depth in fb_choco cookbook
Browse files Browse the repository at this point in the history
Differential Revision: D66316689

fbshipit-source-id: 04a8d2a901927505f3da8b99bf9d95b9f23eea03
  • Loading branch information
Billy Barrese authored and facebook-github-bot committed Nov 22, 2024
1 parent a387db6 commit f303a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/fb_choco/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# We only want to run this if we have chocolatey is installed.
unless ENV['ChocolateyInstall'].nil?
ruby_friendly = ENV['ChocolateyInstall'].gsub(/\\+/, '/')
::Dir.glob("#{ruby_friendly}/lib/**/*.nu*").select do |file|
::Dir.glob("#{ruby_friendly}/lib/*/*.nu*").select do |file|
::File.zero?(file)
end.each do |empty_file|
file empty_file do
Expand Down

0 comments on commit f303a6b

Please sign in to comment.