Skip to content
Snippets Groups Projects
Commit 590f64e3 authored by Max Howell's avatar Max Howell
Browse files

Don't error out if .DS_Store is in a keg

parent 20b7fa6e
No related branches found
No related tags found
No related merge requests found
......@@ -42,9 +42,10 @@ module HomebrewArgvExtension
require 'keg'
@kegs ||= downcased_unique_named.collect do |name|
d=HOMEBREW_CELLAR+name
raise "#{name} is not installed" if not d.directory? or d.children.length == 0
raise "#{name} has multiple installed versions" if d.children.length > 1
Keg.new d.children[0]
dirs = d.children.select{ |pn| pn.directory? } rescue []
raise "#{name} is not installed" if not d.directory? or dirs.length == 0
raise "#{name} has multiple installed versions" if dirs.length > 1
Keg.new dirs.first
end
raise KegUnspecifiedError if @kegs.empty?
@kegs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment