Mercurial > hgrepos > hgweb.cgi > s4
comparison s4-funcs.sh @ 1031:9d62cba7344f draft
Supply four Xs for GNU mktemp
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Wed, 27 Dec 2023 17:40:34 +0900 |
parents | 0dfef6d195fa |
children | ae88ca565d08 |
comparison
equal
deleted
inserted
replaced
1030:0dfef6d195fa | 1031:9d62cba7344f |
---|---|
881 printf '%s' "'$v'" ;; | 881 printf '%s' "'$v'" ;; |
882 *) printf '%s' "'$1'" ;; | 882 *) printf '%s' "'$1'" ;; |
883 esac | 883 esac |
884 ) | 884 ) |
885 mktempd() { | 885 mktempd() { |
886 TMPDIR=$tmpd mktemp -d -t $session | 886 TMPDIR=$tmpd mktemp -d -t $session.XXXX |
887 } | 887 } |
888 getcachedir() { # $1=maintable | 888 getcachedir() { # $1=maintable |
889 if [ -n "$imgcached" ]; then | 889 if [ -n "$imgcached" ]; then |
890 echo $imgcached/$(echo ${1:-hoge}|md5)/$thumbxy | 890 echo $imgcached/$(echo ${1:-hoge}|md5)/$thumbxy |
891 else | 891 else |