uninstall: fix --force

Closes Homebrew/homebrew#42814.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Vlad Shablinsky 2015-08-11 19:26:16 +03:00 committed by Mike McQuaid
parent 3350f9018a
commit 3a764cb549

View File

@ -59,7 +59,7 @@ module Homebrew
old_opt.parent.rmdir_if_possible
end
lnk.unlink if lnk.exist? && lnk.realpath == rack.realpath
link.unlink if link.exist? && link.realpath == rack.realpath
end
if rack.directory?