pocheck: Set the exit value

This commit is contained in:
Vincent van Ravesteijn 2013-10-12 02:35:33 +02:00
parent 6ed292122d
commit 8a0b9b39f4

View File

@ -57,6 +57,8 @@ my $check_trans = (!%options or defined($options{t}));
my %trans;
my $total_warn = 0;
foreach my $pofilename ( @ARGV ) {
my %bad;
if (!$silent_mode) {
@ -239,4 +241,8 @@ foreach my $pofilename ( @ARGV ) {
}
print "\n";
}
$total_warn += $warn;
}
exit ($total_warn > 0);