aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/migrator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/migrator.rb')
-rw-r--r--Library/Homebrew/migrator.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/migrator.rb b/Library/Homebrew/migrator.rb
index d31025119..d8c06de1a 100644
--- a/Library/Homebrew/migrator.rb
+++ b/Library/Homebrew/migrator.rb
@@ -337,9 +337,7 @@ class Migrator
end
def backup_oldname_cellar
- unless old_cellar.exist?
- FileUtils.mv(new_cellar, old_cellar)
- end
+ FileUtils.mv(new_cellar, old_cellar) unless old_cellar.exist?
end
def backup_old_tabs