From e7ae5b6a82491c2ea81c032e3dc9cea4e77792fc Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 1 Jul 2013 17:33:43 +0200 Subject: [PATCH] rose_auto_create_model.pl: Farbe bei Umleitung automatisch ausschalten --- scripts/rose_auto_create_model.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/rose_auto_create_model.pl b/scripts/rose_auto_create_model.pl index 2e746a6bd..3eed8de13 100755 --- a/scripts/rose_auto_create_model.pl +++ b/scripts/rose_auto_create_model.pl @@ -199,14 +199,13 @@ sub parse_args { help => sub { pod2usage(verbose => 99, sections => 'NAME|SYNOPSIS|OPTIONS') }, quiet => \ my $quiet, diff => \ my $diff, - 'color!' => \ my $color, ); $options->{client} = $client; $options->{all} = $all; $options->{nocommit} = $nocommit; $options->{quiet} = $quiet; - $options->{color} = defined $color ? $color : 1; + $options->{color} = -t STDOUT ? 1 : 0; if ($diff) { if (eval { require Text::Diff; 1 }) { -- 2.20.1