[tor-commits] [githax/master] Fix a conditional assignment: or has	a too low precedence for that, use ||
    nickm at torproject.org 
    nickm at torproject.org
       
    Mon Jun  3 14:24:18 UTC 2013
    
    
  
commit ec4ead45c79661d731bed8986033c2e549b1a87b
Author: Peter Palfrader <peter at palfrader.org>
Date:   Sun Jun 2 09:27:37 2013 +0200
    Fix a conditional assignment: or has a too low precedence for that, use ||
---
 hooks/logs_to_emails.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hooks/logs_to_emails.pl b/hooks/logs_to_emails.pl
index 17fb9ea..7becc35 100755
--- a/hooks/logs_to_emails.pl
+++ b/hooks/logs_to_emails.pl
@@ -32,7 +32,7 @@ my $suggested_use = q[
 
 # Set the environment variable TOTAL_N_COMMITS if you want to get a
 # nice 001/123 header in your commits.
-my $NUM_COMMITS = $ENV{TOTAL_N_COMMITS} or "";
+my $NUM_COMMITS = $ENV{TOTAL_N_COMMITS} || "";
 
 my $waiting_for_commit = 1;
 my $prefix = shift @ARGV;
    
    
More information about the tor-commits
mailing list