aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg_relocate.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb
index 0490b05c6..28eb5ef0f 100644
--- a/Library/Homebrew/keg_relocate.rb
+++ b/Library/Homebrew/keg_relocate.rb
@@ -56,6 +56,8 @@ class Keg
changed = s.gsub!(old_cellar, new_cellar)
changed = s.gsub!(old_prefix, new_prefix) || changed
+ next unless changed
+
begin
first.atomic_write(s)
rescue SystemCallError
@@ -64,7 +66,7 @@ class Keg
end
else
rest.each { |file| FileUtils.ln(first, file, :force => true) }
- end if changed
+ end
end
end