summaryrefslogtreecommitdiff
path: root/scripts/maint/checkSpace.pl
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2016-12-15 11:11:28 +0000
committerNick Mathewson <nickm@torproject.org>2016-12-16 10:52:14 -0500
commit4b2516313e88d0d57e0c5bd566880fc8d05221f7 (patch)
tree7d0c7c28a153627c2bef07854f3408edc568a12b /scripts/maint/checkSpace.pl
parent44db6461b59e849617093ea2b93a29bd707b8814 (diff)
downloadtor-4b2516313e88d0d57e0c5bd566880fc8d05221f7.tar.gz
tor-4b2516313e88d0d57e0c5bd566880fc8d05221f7.zip
Add a function to keep track of found errors
Diffstat (limited to 'scripts/maint/checkSpace.pl')
-rwxr-xr-xscripts/maint/checkSpace.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl
index 950936115b..0249c0962b 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;