From 71aaa1f2d1f2788ad92983084a189a7896fe7009 Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 27 Sep 2014 11:18:29 +0000 Subject: [PATCH] do not stall on short recent list svn path=/trunk/; revision=19 --- templates/filterdiag.html.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.2