Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

brew-cleanup: check whether keg is a directory.

* Avoid problem when encountering `.DS_Store' in Cellar.

Closes #16356.
Closes #16388.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information...
commit dc19acc2b42c5bed5a50b5bc765784d4fcd9bed7 1 parent 537d64e
@manphiz manphiz authored mikemcquaid committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  Library/Homebrew/cmd/cleanup.rb
View
2  Library/Homebrew/cmd/cleanup.rb
@@ -33,7 +33,7 @@ def cleanup_formula f
if f.installed? and f.rack.directory?
f.rack.children.each do |keg|
- if f.version > Keg.new(keg).version
+ if File.directory? keg and f.version > Keg.new(keg).version
if f.can_cleanup?
if ARGV.dry_run?
puts "Would remove: #{keg}"
Please sign in to comment.
Something went wrong with that request. Please try again.