keg_relocate: don't forget the hard links

This commit is contained in:
Josh Hagins 2016-11-01 12:58:38 -04:00
parent d60020f1a9
commit e57d312ad1

View File

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