diff options
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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) |
