projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
cc553e2
)
explicitizing lastscore comparison
author
Shawn Boyette
<sboyette@esilibrary.com>
Wed, 7 Jan 2009 14:45:57 +0000 (14:45 +0000)
committer
Shawn Boyette
<sboyette@esilibrary.com>
Wed, 7 Jan 2009 14:45:57 +0000 (14:45 +0000)
compress_fingerprints
patch
|
blob
|
history
diff --git
a/compress_fingerprints
b/compress_fingerprints
index
72f84a8
..
4300429
100755
(executable)
--- a/
compress_fingerprints
+++ b/
compress_fingerprints
@@
-42,9
+42,9
@@
sub populate_fingerprint {
$fp{sha1} = sha1_base64($stripped);
# make sure file is sorted properly
- if ($lastscore and $fp{compact} > $lastscore) {
+ if ($lastscore and ($fp{compact} > $lastscore)) {
print "Input file is sorted improperly or unsorted.\n";
- die "Sort descending (sort -ru) and rerun this script.\n";
+ die "Sort descending (sort -r) and rerun this script.\n";
}
$lastscore = $fp{compact};