Skip to content
Snippets Groups Projects
Commit dee4c76e authored by Xu Cheng's avatar Xu Cheng
Browse files

uninstall: fix when Cellar doesn't exist

parent f81d561b
No related branches found
No related tags found
No related merge requests found
......@@ -46,9 +46,11 @@ module Homebrew
ensure
# If we delete Cellar/newname, then Cellar/oldname symlink
# can become broken and we have to remove it.
if HOMEBREW_CELLAR.directory?
HOMEBREW_CELLAR.children.each do |rack|
rack.unlink if rack.symlink? && !rack.resolved_path_exists?
end
end
end
def rm_pin(rack)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment