diff options
| author | Adam Vandenberg | 2011-03-09 20:50:01 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 11:55:08 -0800 |
| commit | 2f5742dbe8a1d951e1418909de54da5c03773ba2 (patch) | |
| tree | a15322b93f436a8e66deaa750a5de4c60f1d4288 | |
| parent | a517606b2f1fcba7d060c97eeb5a661303c42c8a (diff) | |
| download | homebrew-2f5742dbe8a1d951e1418909de54da5c03773ba2.tar.bz2 | |
Fix 'brew search' with no parameter.
| -rw-r--r-- | Library/Homebrew/cmd/search.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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:" |
