From 78b2b96e212289a0f78d6e2bb957808a28914902 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 5 Jul 2016 10:46:28 +0000 Subject: [PATCH] ignore zero size cache files svn path=/trunk/; revision=138 --- pages/list.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.2