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

16 Dec
2016
16 Dec
'16
3:55 p.m.
commit 4b2516313e88d0d57e0c5bd566880fc8d05221f7 Author: cypherpunks <cypherpunks@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;
3107
Age (days ago)
3107
Last active (days ago)
0 comments
1 participants
participants (1)
-
nickm@torproject.org