From: paul Date: Sat, 27 Sep 2014 11:18:29 +0000 (+0000) Subject: do not stall on short recent list X-Git-Url: http://git.plutz.net/?a=commitdiff_plain;h=71aaa1f2d1f2788ad92983084a189a7896fe7009;p=serve0 do not stall on short recent list svn path=/trunk/; revision=19 --- diff --git a/templates/filterdiag.html.sh b/templates/filterdiag.html.sh index 465dd8e..ec2dee5 100755 --- a/templates/filterdiag.html.sh +++ b/templates/filterdiag.html.sh @@ -83,8 +83,7 @@ cat < $(output='' - tac ${_DATA}/meta/recent |while [ "$(echo "$output" |wc -l)" -lt 10 ]; do - read line + tac ${_DATA}/meta/recent |while [ "$(echo "$output" |wc -l)" -lt 10 ] && read line; do line="$line" echo "$output" |grep -qF "$line" || output="$output$line\n" done