]> git.plutz.net Git - serve0/commitdiff
do not stall on short recent list
authorpaul <paul@plutz.net>
Sat, 27 Sep 2014 11:18:29 +0000 (11:18 +0000)
committerpaul <paul@plutz.net>
Sat, 27 Sep 2014 11:18:29 +0000 (11:18 +0000)
svn path=/trunk/; revision=19

templates/filterdiag.html.sh

index 465dd8ee4518e8743dc3c68f8469b34d7664bd62..ec2dee565f2e20dea390ef8c451925857ea77480 100755 (executable)
@@ -83,8 +83,7 @@ cat <<FilterEnd
     <p class="quicklinks">
       <label class="quicklinks">Most recent</label>
       $(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="<a href="$line">$line</a>"
           echo "$output" |grep -qF "$line" || output="$output$line\n"
         done