From 8fda1dc28489b42ad98f3d609c42f39f82ba2b81 Mon Sep 17 00:00:00 2001 From: Jean-Marie RENOUARD Date: Thu, 22 Feb 2018 15:35:31 +0100 Subject: [PATCH] Issue #371 --- mysqltuner.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 48b7c5f..6da4209 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -198,7 +198,7 @@ open( $fh, '>', $outputfile ) or die("Fail opening $outputfile") if defined($outputfile); $opt{nocolor} = 1 if defined($outputfile); - +$opt{nocolor} = 1 unless(-t STDOUT); # Setting up the colors for the print styles my $me = `whoami`; $me =~ s/\n//g;