From 8ff3ee95b8e896d048e9d903a23a8418699756a6 Mon Sep 17 00:00:00 2001 From: sloum Date: Sat, 31 Oct 2020 04:32:16 +0000 Subject: [PATCH] Fixes mapcheck to expect all lines in a file to be gopher formatted lines (4 tab separated columns) --- mapcheck | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapcheck b/mapcheck index 8614409..eaacd92 100755 --- a/mapcheck +++ b/mapcheck @@ -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)) {