From 5a30768377e97dd6d98f991edbb4ebee5de62e23 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 9 Mar 2011 20:50:01 -0800 Subject: Fix 'brew search' with no parameter. --- Library/Homebrew/cmd/search.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index 19e52f0bb..b4611c0cd 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -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:" -- cgit v1.2.3