Skip to content

Commit 1e0f2ef

Browse files
authored
Merge pull request #816 from miken32/miken32-patch-1
Restore colour to icons
2 parents 8698074 + a807552 commit 1e0f2ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mysqltuner.pl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,12 @@ package main;
287287
my $end = ( $opt{nocolor} == 0 ) ? "\e[0m" : "";
288288

289289
if ($opt{noprettyicon} == 0) {
290-
$good = "";
291-
$bad = "";
292-
$info = "";
293-
$deb = "";
294-
$cmd = "⌨️($me)";
295-
$end = " ";
290+
$good = ( $opt{nocolor} == 0 ) ? "\e[0;32m✔\e[0m " : "";
291+
$bad = ( $opt{nocolor} == 0 ) ? "\e[0;31m✘\e[0m " : "";
292+
$info = ( $opt{nocolor} == 0 ) ? "\e[0;34mℹ\e[0m " : "";
293+
$deb = ( $opt{nocolor} == 0 ) ? "\e[0;31m⚙\e[0m " : "";
294+
$cmd = ( $opt{nocolor} == 0 ) ? "\e[1;32m⌨️($me)" : "⌨️($me)";
295+
$end = ( $opt{nocolor} == 0 ) ? "\e[0m " : " ";
296296
}
297297

298298
# Maximum lines of log output to read from end

0 commit comments

Comments
 (0)