From a023f10310bfd11379202de87c28a7594fdfd363 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 31 May 2014 23:53:46 -0500 Subject: Use Pathname.glob when we want pathname objects --- Library/Homebrew/extend/pathname.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Library/Homebrew/extend') diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 59061af88..b9730a89f 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -359,8 +359,7 @@ class Pathname # Writes a wrapper env script and moves all files to the dst def env_script_all_files dst, env dst.mkpath - Dir["#{self}/*"].each do |file| - file = Pathname.new(file) + Pathname.glob("#{self}/*") do |file| dst.install_p file new_file = dst+file.basename file.write_env_script(new_file, env) -- cgit v1.2.3