aboutsummaryrefslogtreecommitdiff
path: root/lib/App/Acmeman/Source/File.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/Acmeman/Source/File.pm')
-rw-r--r--lib/App/Acmeman/Source/File.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/App/Acmeman/Source/File.pm b/lib/App/Acmeman/Source/File.pm
index c622d51..aa678fd 100644
--- a/lib/App/Acmeman/Source/File.pm
+++ b/lib/App/Acmeman/Source/File.pm
@@ -36,7 +36,9 @@ sub scan {
}
foreach my $file (glob $self->{pattern}) {
next if $file =~ m{$self->{ignore}};
- $err |= $self->load($file);
+ unless ($self->load($file)) {
+ ++$err;
+ }
}
return $err == 0;
}

Return to:

Send suggestions and report system problems to the System administrator.