Show errors for duplicate source entries.
This commit is contained in:
@@ -74,6 +74,13 @@ $3 !~ /^20[0-3][0-9]-[01][0-9]-[0-3][0-9]$/ {
|
||||
}
|
||||
|
||||
{
|
||||
if ($1 in srcs) {
|
||||
printf "%5d: %s has duplicate entries\n", NR, $1 | sort
|
||||
error[NR] = 1
|
||||
next
|
||||
}
|
||||
srcs[$1] = 1
|
||||
|
||||
if (lastdate > $3) {
|
||||
printf "%5d: date going backwards from %s to %s\n", NR, lastdate, $3 | sort
|
||||
error[NR] = 1
|
||||
|
||||
Reference in New Issue
Block a user