diff options
| author | Mike McQuaid | 2016-11-11 13:15:46 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-11-11 13:15:49 +0000 |
| commit | 4538d80db11401eb5225c44dc8875107e9be39f5 (patch) | |
| tree | 39e171776652e956579086a75e858838b1e61432 | |
| parent | 8241bbb15b3b7270fa2b42904247925a1f1b4715 (diff) | |
| download | brew-4538d80db11401eb5225c44dc8875107e9be39f5.tar.bz2 | |
uninstall: don't need kegs to exist for --force.
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.
| -rw-r--r-- | Library/Homebrew/cmd/uninstall.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb index d4a64c505..d9e6a7377 100644 --- a/Library/Homebrew/cmd/uninstall.rb +++ b/Library/Homebrew/cmd/uninstall.rb @@ -21,6 +21,7 @@ module Homebrew 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 |
