aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2022-06-30 15:36:10 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2022-06-30 15:36:10 -0700
commit9629cf285e461313b68438ecc4f6a25532c0c137 (patch)
tree12a8ac430a48f13fc55a26b5d4178dbef2805b32 /statify
parentstatify: fix chown (diff)
downloadelections-9629cf285e461313b68438ecc4f6a25532c0c137.tar.gz
elections-9629cf285e461313b68438ecc4f6a25532c0c137.tar.bz2
elections-9629cf285e461313b68438ecc4f6a25532c0c137.zip
Votify: accept symlinks as well as files
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'statify')
-rwxr-xr-xstatify4
1 files changed, 2 insertions, 2 deletions
diff --git a/statify b/statify
index b7c9396..0cccff1 100755
--- a/statify
+++ b/statify
@@ -86,9 +86,9 @@ for my $election_name (keys %open_elections) {
my ($count_voters, $count_submit, $count_pending) = (0, 0,0);
for my $votername (@voters) {
$count_voters++;
- if(-f catfile('/home', $votername, ".ballot-${election_name}-submitted")) {
+ if(-e catfile('/home', $votername, ".ballot-${election_name}-submitted")) {
$count_submit++;
- } elsif (-f catfile('/home', $votername, ".ballot-${election_name}")) {
+ } elsif (-e catfile('/home', $votername, ".ballot-${election_name}")) {
$count_pending++;
}
}