pathname: skip directory in env_script_all_files

Closes Homebrew/homebrew#37180.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-02-25 18:10:03 +08:00
parent be15a514eb
commit 328fa80f41

View File

@ -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)