Bug 6914 - fixes for the color option of koha_perl_deps.pl
authorGreg Barniskis <gbarniskis@gmail.com>
Mon, 26 Sep 2011 16:15:06 +0000 (11:15 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Sat, 3 Dec 2011 06:47:38 +0000 (07:47 +0100)
Reset the terminal color mode after reporting (to avoid polluting the
user's shell), and use blue instead of white for the report header and
footer.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>

koha_perl_deps.pl

index c5b614e..01e17d5 100755 (executable)
@@ -39,7 +39,7 @@ push @pm, 'missing_pm' if $missing || $all;
 push @pm, 'upgrade_pm' if $upgrade || $all;
 push @pm, 'current_pm' if $installed || $all;
 
-print color 'bold white' if $color;
+print color 'bold blue' if $color;
 print"
                                               Installed         Required          Module is
 Module Name                                   Version           Version            Required
@@ -68,7 +68,7 @@ write;
         }
     }
 }
-print color 'bold white' if $color;
+print color 'bold blue' if $color;
 my $footer = "
 --------------------------------------------------------------------------------------------
 Total modules reported: $count                      ";
@@ -81,6 +81,7 @@ else {
 }
 
 print $footer;
+print color 'reset' if $color;
 
 1;