Silence some silly 'broken pipe' errors
This commit is contained in:
parent
7457351d67
commit
a391567015
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ fn listDir {
|
||||||
# H1 is not reliable because htmlroff doesn't use it :(
|
# 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' }
|
#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
|
# 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 '')
|
if (! ~ $desc '')
|
||||||
desc = ' - '$"desc
|
desc = ' - '$"desc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue