Fixes mapcheck to expect all lines in a file to be gopher formatted lines (4 tab separated columns)

This commit is contained in:
Sloom Sloum Sluom IV 2020-10-31 04:32:16 +00:00
parent a3b4a2d077
commit 8ff3ee95b8
1 changed files with 2 additions and 2 deletions

View File

@ -72,9 +72,9 @@ BEGIN {
print "WARNING: Line", NR ":", "Line length is", length($1) ". Max length is", MAXLEN
}
if (NF > 1 && NF < 4) {
if (NF != 4) {
ERR++
print "ERROR: Line", NR ":", "Link line with", NF, "columns. Expected 4."
print "ERROR: Line", NR ":", "Line with", NF, "columns. Expected 4."
}
if (NF == 4 && !(substr($1, 1, 1) in TYPES)) {