From: paul Date: Tue, 5 Jul 2016 10:46:28 +0000 (+0000) Subject: ignore zero size cache files X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=78b2b96e212289a0f78d6e2bb957808a28914902;p=serve0 ignore zero size cache files svn path=/trunk/; revision=138 --- diff --git a/pages/list.sh b/pages/list.sh index 337676e..a9eeb33 100755 --- a/pages/list.sh +++ b/pages/list.sh @@ -103,7 +103,7 @@ genlist(){ selectionlist() { cachebase="?o=${order}&s=${search//\//}&f=${filter//\//}" cache="${_DATA}/cache/${cachebase}" - if [ "$cache" -nt ${_DATA}/videos -a "$cache" -nt ${_DATA}/meta ]; then + if [ -s "$cache" -a "$cache" -nt ${_DATA}/videos -a "$cache" -nt ${_DATA}/meta ]; then cat "$cache" else filterex="s;^([0-9]+\t){3}(.+)\n.*$;\2;p"