Skip to content

Commit

Permalink
uninstall: fix last brew executable expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
DomT4 committed Nov 12, 2015
1 parent c2c5d95 commit 7220feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ HOMEBREW_PREFIX = $HOMEBREW_PREFIX_CANDIDATES.detect do |p|
end
abort "Failed to locate Homebrew!" if HOMEBREW_PREFIX.nil?

HOMEBREW_REPOSITORY = (HOMEBREW_PREFIX/"bin/brew").realpath.dirname.parent
HOMEBREW_REPOSITORY = (HOMEBREW_PREFIX/".git").realpath.dirname || (HOMEBREW_PREFIX/"bin/brew").realpath.dirname.parent
HOMEBREW_CELLAR = if (HOMEBREW_PREFIX/"Cellar").exist?
HOMEBREW_PREFIX/"Cellar"
else
Expand Down

0 comments on commit 7220feb

Please sign in to comment.