Fix 'brew search' with no parameter.

This commit is contained in:
Adam Vandenberg 2011-03-09 20:50:01 -08:00
parent afa5d95bb4
commit 5a30768377

View File

@ -12,7 +12,7 @@ module Homebrew extend self
search_results = search_brews query
puts_columns search_results
if $stdout.tty? and msg = blacklisted?(query)
if not query.to_s.empty? and $stdout.tty? and msg = blacklisted?(query)
unless search_results.empty?
puts
puts "If you meant `#{query}' precisely:"