From a3915670150d59778217e979f7a694022f6278fd Mon Sep 17 00:00:00 2001 From: Uriel Date: Mon, 18 Jun 2007 05:30:46 +0200 Subject: [PATCH] Silence some silly 'broken pipe' errors --- pub/sitemap.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pub/sitemap.tpl b/pub/sitemap.tpl index 07c6aad..7902b8f 100644 --- a/pub/sitemap.tpl +++ b/pub/sitemap.tpl @@ -30,7 +30,7 @@ fn listDir { # H1 is not reliable because htmlroff doesn't use it :( #desc = `{ cat $i.html |sed 32q | grep '<[Hh]1>' |sed 's/<[Hh]1>(.*)(<\/[Hh]1>|$)/\1/;s/<[^>]*>//g;1q' } # Pick the first line of body instead - desc = `{ cat $i.html |/bin/sed '0,/<[Bb][Oo][Dd][Yy]/d;s/<[^>]*>//g;/^$/d'|sed 1q } + desc = `{ /bin/sed -e '0,/<[Bb][Oo][Dd][Yy]/d;s/<[^>]*>//g;/^$/d' < $i.html >[2]/dev/null | sed 1q } } if (! ~ $desc '') desc = ' - '$"desc