From e1995d60efa90f05fa3292d758e47ac20f33d9e7 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 23 Oct 2009 16:05:32 +0100 Subject: [PATCH] Call to_s on ohai parameters --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index d6f1e401f9..e9a480ed2b 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -47,7 +47,7 @@ end # args are additional inputs to puts until a nil arg is encountered def ohai title, *sput - title = title[0, `/usr/bin/tput cols`.strip.to_i-4] unless ARGV.verbose? + title = title.to_s[0, `/usr/bin/tput cols`.strip.to_i-4] unless ARGV.verbose? puts "#{Tty.blue}==>#{Tty.white} #{title}#{Tty.reset}" puts *sput unless sput.empty? end