Commit 8cda03c3 authored by Robert Ricci's avatar Robert Ricci

Add a safety check

Don't commit the score file if it looks like the total line hasn't been
parent ac69b167
......@@ -10,6 +10,9 @@ foreach my $line (<SCORE>) {
if ($scoreline) {
die "ERROR: Found two score lines!\n";
if (! ($line =~ /\d+\s*\/\s*\d+/)) {
die "ERROR: Score is not numeric - forget to run total-score?\n";
$scoreline = $line;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment