Skip to content

Commit

Permalink
Remove spurious log line adding to cron noise.
Browse files Browse the repository at this point in the history
We don't need the Info: line.  If it fails, it will error.  Otherwise we can
assume it succeeded.
  • Loading branch information
rspier committed May 3, 2024
1 parent 109717d commit a0b103f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cron/update-checksums.pl
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ =head1 DESCRIPTION
open $lfh, ">>", $lockfile or die "Could not open lockfile: $!";
open $lfh, "+<", $lockfile or die "Could not open lockfile: $!";
}
if (flock $lfh, LOCK_EX|LOCK_NB) {
warn "Info: Got the lock, continuing";
} else {
if (not flock $lfh, LOCK_EX|LOCK_NB) {
die "lockfile '$lockfile' locked by a different process; cannot continue";
}

Expand Down

0 comments on commit a0b103f

Please sign in to comment.