Also add a NR > 1 for comments (NFCI) - gophercgis - Collection of gopher CGI/DCGI for geomyidae
(HTM) hg clone https://bitbucket.org/iamleot/gophercgis
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) changeset e6a6a6671702598e34a377e22ed159fa01565354
(DIR) parent c4c9064e8bff17b338122e1ba033f19322c65931
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 7 Aug 2018 19:03:35
Also add a NR > 1 for comments (NFCI)
(Unfortunately the `NF == 4' condition is still needed because jq add an extra
`\n' at the end and hence there will be an extra empty record)
Diffstat:
lobsters/comments.dcgi | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff -r c4c9064e8bff -r e6a6a6671702 lobsters/comments.dcgi
--- a/lobsters/comments.dcgi Tue Aug 07 18:35:54 2018 +0200
+++ b/lobsters/comments.dcgi Tue Aug 07 19:03:35 2018 +0200
@@ -86,7 +86,7 @@
next
}
-NF == 4 {
+NR > 1 && NF == 4 {
n++
comment[n, "username"] = $1
comment[n, "indent_level"] = $2