Update mysqltuner.pl

$opt{outputfile} is already defined (with "0" value) so $opt{nocolor} is always set to "1".
Changed to simple if() to check for a nonzero value.
This commit is contained in:
Joaquín Ferrero 2022-03-30 02:18:32 +02:00 committed by GitHub
parent 77b313bf92
commit d7a4d4cce5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,7 +199,7 @@ if ( $opt{verbose} ) {
$opt{pfstat} = 1; #Print performance schema info.
$opt{cvefile} = 'vulnerabilities.csv'; #CVE File for vulnerability checks
}
$opt{nocolor} = 1 if defined( $opt{outputfile} );
$opt{nocolor} = 1 if $opt{outputfile};
$opt{tbstat} = 0 if ( $opt{notbstat} == 1 ); # Don't Print table information
$opt{colstat} = 0 if ( $opt{nocolstat} == 1 ); # Don't Print column information
$opt{dbstat} = 0 if ( $opt{nodbstat} == 1 ); # Don't Print database information