changeset 72:3dc3ddd2d3e5

getcachedir argument contains rowid
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 31 Jul 2015 23:22:59 +0900
parents 3a157da0801d
children a8b4eb19a2fb
files s4-blog.sh s4-funcs.sh
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/s4-blog.sh	Fri Jul 31 23:21:08 2015 +0900
+++ b/s4-blog.sh	Fri Jul 31 23:22:59 2015 +0900
@@ -53,7 +53,7 @@
   #     # tmpfiles=$tmpfiles" $tmpd"
   #   fi
   # fi
-  td=`getcachedir article`
+  td=`getcachedir "article/$2"`
   tbl=${1%%[!A-Z0-9a-z_]*} rowid=${2%%[!A-Z0-9a-z_]*}
 err rowid=$rowid, '$2'=$2
   ts=${tbl}_s tm=${tbl}_m
--- a/s4-funcs.sh	Fri Jul 31 23:21:08 2015 +0900
+++ b/s4-funcs.sh	Fri Jul 31 23:22:59 2015 +0900
@@ -2019,7 +2019,7 @@
 <input name="confirm" type=checkbox value="yes">はい</span>'
   fi
   # Image Cache dir
-  td=`getcachedir $2$3`
+  td=`getcachedir "$2/$3"`
   while IFS=: read prompt name keytype type args; do
     [ -z "${prompt%%\#*}" ] && continue # skip comment line(#)
     sp="${args:+ }"

yatex.org