aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorJack Nagel2014-05-31 23:53:46 -0500
committerJack Nagel2014-05-31 23:53:51 -0500
commit6017507faf566fedc41d8c8f3ae3071df8f74ab0 (patch)
tree5a81303f461e21e003b9868b6f50f1839004d473 /Library/Homebrew/extend
parent12442da0dbc5f49a0d39badf257b98c4b0f05a1e (diff)
downloadhomebrew-6017507faf566fedc41d8c8f3ae3071df8f74ab0.tar.bz2
Use Pathname.glob when we want pathname objects
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/pathname.rb3
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)