Enable color by default when running on a terminal

This commit is contained in:
Fabio Pedretti 2024-01-11 11:27:25 +01:00
parent 3fd633b507
commit b608da0fb1

2
mysqltuner.pl Normal file → Executable file
View file

@ -68,7 +68,7 @@ my %opt = (
"noinfo" => 0,
"debug" => 0,
"nocolor" => ( !-t STDOUT ),
"color" => 0,
"color" => ( -t STDOUT ),
"forcemem" => 0,
"forceswap" => 0,
"host" => 0,