Skip to content

Commit

Permalink
Restore colour to icons
Browse files Browse the repository at this point in the history
When the icons were committed, there was no allowance made for the `--color` option. Not sure if this was intentional, but having the green/red makes things much easier to see at a glance for me.
  • Loading branch information
miken32 authored Jan 15, 2025
1 parent 7a2d821 commit a807552
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mysqltuner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,12 @@ package main;
my $end = ( $opt{nocolor} == 0 ) ? "\e[0m" : "";

if ($opt{noprettyicon} == 0) {
$good = "";
$bad = "";
$info = "";
$deb = "";
$cmd = "⌨️($me)";
$end = " ";
$good = ( $opt{nocolor} == 0 ) ? "\e[0;32m✔\e[0m " : "";
$bad = ( $opt{nocolor} == 0 ) ? "\e[0;31m✘\e[0m " : "";
$info = ( $opt{nocolor} == 0 ) ? "\e[0;34mℹ\e[0m " : "";
$deb = ( $opt{nocolor} == 0 ) ? "\e[0;31m⚙\e[0m " : "";
$cmd = ( $opt{nocolor} == 0 ) ? "\e[1;32m⌨️($me)" : "⌨️($me)";
$end = ( $opt{nocolor} == 0 ) ? "\e[0m " : " ";
}

# Maximum lines of log output to read from end
Expand Down

0 comments on commit a807552

Please sign in to comment.