keg_relocate: don't forget the hard links
This commit is contained in:
parent
d60020f1a9
commit
e57d312ad1
@ -77,7 +77,7 @@ class Keg
|
|||||||
changed = s.gsub!(regexp, replacements)
|
changed = s.gsub!(regexp, replacements)
|
||||||
|
|
||||||
next unless changed
|
next unless changed
|
||||||
changed_files << first.relative_path_from(path)
|
changed_files += [first, *rest].map { |file| file.relative_path_from(path) }
|
||||||
|
|
||||||
begin
|
begin
|
||||||
first.atomic_write(s)
|
first.atomic_write(s)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user