From 638eda5f2d62afe157c4d2e55f8174edbdeb1e16 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Thu, 13 Aug 2015 14:56:14 +0800 Subject: tap-info: fix for not installed tap Closes Homebrew/homebrew#42890. Signed-off-by: Xu Cheng --- Library/Homebrew/cmd/tap-info.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/tap-info.rb b/Library/Homebrew/cmd/tap-info.rb index c4114fb98..1354264df 100644 --- a/Library/Homebrew/cmd/tap-info.rb +++ b/Library/Homebrew/cmd/tap-info.rb @@ -48,11 +48,11 @@ module Homebrew command_count = tap.command_files.size info += "#{command_count} command#{plural(command_count)} " if command_count > 0 info += "\n#{tap.path} (#{tap.path.abv})" + info += "\nFrom: #{tap.remote.nil? ? "N/A" : tap.remote}" else info += "Not installed" end puts info - puts "From: #{tap.remote.nil? ? "N/A" : tap.remote}" end end end -- cgit v1.2.3