projects
/
cloudstore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8366e8c
)
colorize only if run from terminal
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 11 Feb 2012 16:06:42 +0000
(17:06 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 11 Feb 2012 16:06:42 +0000
(17:06 +0100)
lib/WarnColor.pm
patch
|
blob
|
history
diff --git
a/lib/WarnColor.pm
b/lib/WarnColor.pm
index
5cf738d
..
4afb940
100644
(file)
--- a/
lib/WarnColor.pm
+++ b/
lib/WarnColor.pm
@@
-24,7
+24,7
@@
sub BEGIN {
$msg =~ s{(["\{\}\#])}{\e[33m$1\e[0m}g; # yellow
print STDERR $msg unless $msg =~ m{^#} && ! $ENV{DEBUG};
return 1;
- }
;
+ }
if -t STDOUT; # colorize only if run from terminal !
}