versions: don't print 'nil' when stdout is not a tty

Closes #8960.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Dylan Smith authored and Jack Nagel committed 2012-01-24 12:21:08 -06:00
1 parent fa1b6a7ad0
commit f8599aaa2c
1 file changed
+2 -2
+2 -2
View File
@@ -9,9 +9,9 @@ module Homebrew extend self
puts f.versions * " "
else
f.versions do |version, sha|
print Tty.white
print Tty.white.to_s
print "#{version.ljust(8)} "
print Tty.reset
print Tty.reset.to_s
puts "git checkout #{sha} #{f.pretty_relative_path}"
end
end