From: Moritz Bunkus Date: Mon, 1 Jul 2013 15:33:43 +0000 (+0200) Subject: rose_auto_create_model.pl: Farbe bei Umleitung automatisch ausschalten X-Git-Tag: release-3.1.0beta1~238 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e7ae5b6a82491c2ea81c032e3dc9cea4e77792fc;p=kivitendo-erp.git rose_auto_create_model.pl: Farbe bei Umleitung automatisch ausschalten --- 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 }) {