activate nocollor when reportfile is set
This commit is contained in:
parent
512cb3de1d
commit
bf922481b7
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ $reportfile=abs_path($opt{reportfile}) unless $opt{reportfile} eq "0";
|
||||||
|
|
||||||
my $fh=undef;
|
my $fh=undef;
|
||||||
open($fh, '>', $reportfile) or die("Fail opening $reportfile") if defined($reportfile);
|
open($fh, '>', $reportfile) or die("Fail opening $reportfile") if defined($reportfile);
|
||||||
$opt{nocolor} = 0 if if defined($reportfile);
|
$opt{nocolor} = 1 if defined($reportfile);
|
||||||
|
|
||||||
# Setting up the colors for the print styles
|
# Setting up the colors for the print styles
|
||||||
my $good = ($opt{nocolor} == 0)? "[\e[0;32mOK\e[0m]" : "[OK]" ;
|
my $good = ($opt{nocolor} == 0)? "[\e[0;32mOK\e[0m]" : "[OK]" ;
|
||||||
|
|
Loading…
Reference in a new issue