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:
parent
be15a514eb
commit
328fa80f41
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user