[tor-commits] [tor/master] Add a function to keep track of found errors
nickm at torproject.org
nickm at torproject.org
Fri Dec 16 15:55:14 UTC 2016
commit 4b2516313e88d0d57e0c5bd566880fc8d05221f7
Author: cypherpunks <cypherpunks at torproject.org>
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;
More information about the tor-commits
mailing list