s4

changeset 793:5d73f47cb1a9 feature-world

Trivial error fixed
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 13 Jun 2020 20:26:36 +0900
parents e086e07dfc9c
children 8448724f69e3
files s4-blog.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/s4-blog.sh	Sat Jun 13 18:19:13 2020 +0900
     1.2 +++ b/s4-blog.sh	Sat Jun 13 20:26:36 2020 +0900
     1.3 @@ -126,7 +126,7 @@
     1.4    td=`getcachedir "article/$2"`
     1.5    [ -d "$td" ] || mkdir -p $td
     1.6    tbl=${1%%[!A-Z0-9a-z_]*} rowid=${2%%[!A-Z0-9a-z_]*}
     1.7 -  err blow_showentry: rowid=$rowid, '$2'=$2 user=$user
     1.8 +  err blog_showentry: rowid=$rowid, '$2'=$2 user=$user
     1.9    ts=${tbl}_s tm=${tbl}_m
    1.10    at=article as=article_s am=article_m
    1.11    serial=$(($(date +%s)-1420038000))s$$
    1.12 @@ -481,7 +481,7 @@
    1.13  	echo "</td></tr>"
    1.14        } > "$cachefile.$$"	######## New ROW Creation Ends here ########
    1.15        # Care about race condition
    1.16 -      if [ -s $cachefile -a $cachefile -nt $cachestamp ]; then
    1.17 +      if [ -n "$hte" -a -s $cachefile -a $cachefile -nt $cachestamp ]; then
    1.18  	# If other process have created cache, give up to serve our file
    1.19  	rm -f $cachefile.$$
    1.20        else