env_script_all_files: don't overwrite existing stuff
Overwriting upstream content potentially causes major confusion at best, major breakage at worst.
This commit is contained in:
parent
e8048606d1
commit
8a0a887056
@ -340,8 +340,10 @@ class Pathname
|
||||
Pathname.glob("#{self}/*") do |file|
|
||||
next if file.directory?
|
||||
|
||||
dst.install(file)
|
||||
new_file = dst.join(file.basename)
|
||||
raise Errno::EEXIST, new_file if new_file.exist?
|
||||
|
||||
dst.install(file)
|
||||
file.write_env_script(new_file, env)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user