Ignore more noise and use `next' instead of `exit' in the middle. - 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 82cb3fdad8fbc5771bc23e69df4606e11ce5e153
(DIR) parent dc57d7e63d14e8105da1c909f2505d745c9a150f
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Fri, 31 Aug 2018 00:43:42
Ignore more noise and use `next' instead of `exit' in the middle.
Doing an `exit' in the middle can leads to awk I/O errors.
Diffstat:
theguardian/article.cgi | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff -r dc57d7e63d14 -r 82cb3fdad8fb theguardian/article.cgi
--- a/theguardian/article.cgi Thu Aug 30 12:41:56 2018 +0200
+++ b/theguardian/article.cgi Fri Aug 31 00:43:42 2018 +0200
@@ -26,8 +26,11 @@
next
}
- /<div class="after-article js-after-article">/ {
- exit
+ /<div class="after-article js-after-article">/,/<\/article>/ {
+ next
+ }
+ /<div class="submeta">/,/<\/article>/ {
+ next
}
{