From d03563d3f1d6c45da7d1575b5a24e6299ce0da5d Mon Sep 17 00:00:00 2001 From: Bas Zoetekouw Date: Mon, 6 Oct 2008 20:16:37 +0000 Subject: Add -c option that disables colour in output CVS version numbers check_desc_trans.pl: 1.8 -> 1.9 --- check_desc_trans.pl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'check_desc_trans.pl') diff --git a/check_desc_trans.pl b/check_desc_trans.pl index cf249bf0193..4311458ec64 100755 --- a/check_desc_trans.pl +++ b/check_desc_trans.pl @@ -44,6 +44,13 @@ use Local::Util 'uniq'; use strict; use warnings; +# see if -c was specified +if ( $ARGV[0] eq '-c' ) +{ + shift @ARGV; + $ENV{'ANSI_COLORS_DISABLED'} = '1'; +} + # Get language configuration my $language; if ( $ARGV[0] ) -- cgit v1.2.3