Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #2126 from tomykaira/no_color_for_redirect

Disable ANSI coloring when output is redirected
  • Loading branch information...
commit 3d15318f19540797f2eff51899fda124974792cf 2 parents 89b96f7 + 1c5acac
André Arko indirect authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/bundler/cli.rb
2  lib/bundler/cli.rb
@@ -9,7 +9,7 @@ class CLI < Thor
9 9
10 10 def initialize(*)
11 11 super
12   - the_shell = (options["no-color"] ? Thor::Shell::Basic.new : shell)
  12 + the_shell = (options["no-color"] || (not STDOUT.tty?) ? Thor::Shell::Basic.new : shell)
13 13 Bundler.ui = UI::Shell.new(the_shell)
14 14 Bundler.ui.debug! if options["verbose"]
15 15 Bundler.rubygems.ui = UI::RGProxy.new(Bundler.ui)

0 comments on commit 3d15318

Please sign in to comment.
Something went wrong with that request. Please try again.