Merge pull request #3111 from alyssais/migrate_empty_homebrew_directory
Don't fail to migrate repo because of empty dir
This commit is contained in:
commit
35de091bae
@ -203,6 +203,7 @@ module Homebrew
|
||||
end
|
||||
|
||||
new_homebrew_repository = Pathname.new "/usr/local/Homebrew"
|
||||
new_homebrew_repository.rmdir_if_possible
|
||||
if new_homebrew_repository.exist?
|
||||
ofail <<-EOS.undent
|
||||
#{new_homebrew_repository} already exists.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user