aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorXu Cheng2015-02-25 18:10:03 +0800
committerXu Cheng2015-02-25 20:17:22 +0800
commit328fa80f413af936fb1612156208d27c42dd4697 (patch)
treee15a9a0bf422dd9aa62b7033a8f5499ae87e5eae /Library/Homebrew/extend
parentbe15a514ebf44d1cab0e3fce0ad0bd7039d0dec1 (diff)
downloadbrew-328fa80f413af936fb1612156208d27c42dd4697.tar.bz2
pathname: skip directory in env_script_all_files
Closes Homebrew/homebrew#37180. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/pathname.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 71f2d6b0b..2ca8b6e5f 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -382,6 +382,7 @@ class Pathname
def env_script_all_files dst, env
dst.mkpath
Pathname.glob("#{self}/*") do |file|
+ next if file.directory?
dst.install_p file
new_file = dst+file.basename
file.write_env_script(new_file, env)