Skip to content

Commit

Permalink
Merge pull request Homebrew#1483 from MikeMcQuaid/uninstall-no-kegs-n…
Browse files Browse the repository at this point in the history
…eeded-force

uninstall: don't need kegs to exist for --force.
  • Loading branch information
MikeMcQuaid committed Nov 11, 2016
2 parents 8241bbb + 4538d80 commit 0f6cd9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/cmd/uninstall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def uninstall
kegs_by_rack = if ARGV.force?
Hash[ARGV.named.map do |name|
rack = Formulary.to_rack(name)
next unless rack.directory?
[rack, rack.subdirs.map { |d| Keg.new(d) }]
end]
else
Expand Down

0 comments on commit 0f6cd9d

Please sign in to comment.