Skip to content

Commit

Permalink
Fix options "prettyicon" and "noprettyicon"
Browse files Browse the repository at this point in the history
Added option "prettyicon" along with "noprettyicon". Defaults to noprettyicon. Updated --help menu. Fixes error message "Use of uninitialized value $opt{"prettyicon"} in numeric ne (!=) at mysqltuner.pl line 236"
  • Loading branch information
Steve8291 authored Nov 14, 2024
1 parent 5db9d76 commit d1c4e49
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mysqltuner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ package main;

$opt{cvefile} = 'vulnerabilities.csv'; #CVE File for vulnerability checks
}
$opt{prettyicon} = 0 if $opt{prettyicon}!=1;
$opt{prettyicon} = 0 if ( $opt{noprettyicon} == 1 );
$opt{nocolor} = 1 if defined( $opt{outputfile} );
$opt{tbstat} = 0 if ( $opt{notbstat} == 1 ); # Don't print table information
Expand Down

0 comments on commit d1c4e49

Please sign in to comment.