mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Add a function to keep track of found errors
This commit is contained in:
parent
44db6461b5
commit
4b2516313e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user