Skip to content

Commit

Permalink
uninstall: don't need kegs to exist for --force.
Browse files Browse the repository at this point in the history
Otherwise there's an error which is a regression on previous
functionality. This mirrors `rm -f` which doesn't fail if a file doesn't
exist.
  • Loading branch information
MikeMcQuaid committed Nov 11, 2016
1 parent 8241bbb commit 4538d80
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 4538d80

Please sign in to comment.