diff --git a/mysqltuner.pl b/mysqltuner.pl index 117fc52..9b7aeee 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -66,7 +66,7 @@ my %opt = ( "nogood" => 0, "noinfo" => 0, "debug" => 0, - "nocolor" => 0, + "nocolor" => ( ! -t STDOUT ), "forcemem" => 0, "forceswap" => 0, "host" => 0,