aboutsummaryrefslogtreecommitdiff
path: root/checkem
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-08-10 23:03:41 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-08-10 23:03:41 +1200
commitaef2ca8d5b8eb65f6d8df758270b64ac6517dba9 (patch)
tree26143ef32075ec6f7645cea0b3d1a4af4a9363f7 /checkem
parentMore README tweaks (diff)
downloadcheckem-aef2ca8d5b8eb65f6d8df758270b64ac6517dba9.tar.gz
checkem-aef2ca8d5b8eb65f6d8df758270b64ac6517dba9.zip
Close file after digest, not before
Seems to work anyway, but this seems cleaner
Diffstat (limited to 'checkem')
-rwxr-xr-xcheckem2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkem b/checkem
index 1df8fb6..c14526b 100755
--- a/checkem
+++ b/checkem
@@ -112,9 +112,9 @@ for my $fs ( grep { @{$_} > 1 } values %sizes ) {
or croak 'Failed to open file';
binmode $fh;
$dig->addfile($fh);
+ push @{ $sums{ $dig->digest() } }, $f;
close $fh
or croak 'Failed to close file';
- push @{ $sums{ $dig->digest() } }, $f;
}
}