aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cask')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/search.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/search.rb b/Library/Homebrew/cask/lib/hbc/cli/search.rb
index 9d1a16f15..643d18d55 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/search.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/search.rb
@@ -46,6 +46,11 @@ module Hbc
end
def self.render_results(exact_match, partial_matches, remote_matches, search_term)
+ unless $stdout.tty?
+ puts [*exact_match, *partial_matches, *remote_matches]
+ return
+ end
+
if !exact_match && partial_matches.empty?
puts "No Cask found for \"#{search_term}\"."
return