From dc99621cc13fe94cde240ccdc18bfc121a030ad7 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 15 Mar 2013 16:38:13 -0400 Subject: [PATCH] Corrected issue whereby reprocessing would cause a duplicate index template output --- repo2html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/repo2html b/repo2html index 8ab5ad9..16ec4f3 100755 --- a/repo2html +++ b/repo2html @@ -123,11 +123,13 @@ listcache=.list | ./processor "$repotype" "$path_out" 2> >( _htmlout ) # re-process cref errors (but only once; any errors at this point will be -# considered to be problem refs) TODO: RSS +# considered to be problem refs) TODO: RSS; note that we redirect all output to +# /dev/null so as not to re-output the index template export cref_errlog=.cref-bad >"$cref_errlog" -grep -f<( sed 's/^/\^/' "$cref_errlog_first" ) "$listcache" \ - | ./processor "$repotype" "$path_out" 2> >( _reout ) +( grep -f<( sed 's/^/\^/' "$cref_errlog_first" ) "$listcache" \ + | ./processor "$repotype" "$path_out" 2> >( _reout ) \ +) >/dev/null # if any invalid crefs remain, then they're bad [ ! -s "$cref_errlog" ] || {