aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/keg_relocate.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb
index b878781e1..0ab4b9731 100644
--- a/Library/Homebrew/keg_relocate.rb
+++ b/Library/Homebrew/keg_relocate.rb
@@ -77,7 +77,7 @@ class Keg
changed = s.gsub!(regexp, replacements)
next unless changed
- changed_files << first.relative_path_from(path)
+ changed_files += [first, *rest].map { |file| file.relative_path_from(path) }
begin
first.atomic_write(s)