]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
teeboth: check cheaper condition in && first
authorKacper Kornet <draenog@pld-linux.org>
Thu, 9 May 2013 20:56:21 +0000 (21:56 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Thu, 9 May 2013 20:56:21 +0000 (21:56 +0100)
teeboth

diff --git a/teeboth b/teeboth
index 0612d642b8e67890d4c1192707657a5891f1ae90..5c3f5c04e35ba1a74479e8a23e90e418dfb8c487 100755 (executable)
--- a/teeboth
+++ b/teeboth
@@ -55,7 +55,7 @@ while ( $alive ) {
        foreach my $h ( $select->can_read() ) {
                sysread $h, $_, 1024;
                print $fout $_ if $fout;
-               if ( $h == \*child_err && $interactive ) {
+               if ( $interactive && $h == \*child_err ) {
                        print "\033[31m$_\033[0m";
                } else {
                        print $_;
This page took 0.02883 seconds and 4 git commands to generate.