[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Add a function to keep track of found errors



commit 4b2516313e88d0d57e0c5bd566880fc8d05221f7
Author: cypherpunks <cypherpunks@xxxxxxxxxxxxxx>
Date:   Thu Dec 15 11:11:28 2016 +0000

    Add a function to keep track of found errors
---
 scripts/maint/checkSpace.pl | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl
index 9509361..0249c09 100755
--- a/scripts/maint/checkSpace.pl
+++ b/scripts/maint/checkSpace.pl
@@ -3,6 +3,12 @@
 use strict;
 use warnings;
 
+my $found = 0;
+sub msg {
+  $found = 1;
+  print "$_[0]";
+}
+
 my $C = 0;
 
 if ($ARGV[0] =~ /^-/) {
@@ -189,3 +195,5 @@ for my $fn (@ARGV) {
     }
     close(F);
 }
+
+exit $found;



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits