aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-02-25 18:10:03 +0800
committerXu Cheng2015-02-25 20:17:22 +0800
commitbc217b02713060e948dbc4a74a29a3542a157808 (patch)
tree134bffb4beba00fce9760e4047584a3a530cbe1e /Library
parenta66474d8643dbe98979385df8a95519c67a16e7d (diff)
downloadhomebrew-bc217b02713060e948dbc4a74a29a3542a157808.tar.bz2
pathname: skip directory in env_script_all_files
Closes #37180. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-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)