_blogs: Try unsetting variables at the end of the for loop
This commit is contained in:
parent
16c0fa28d1
commit
f5780454f5
4
qsgen2
4
qsgen2
@ -538,8 +538,10 @@ function _blogs() {
|
|||||||
[[ ! -d "${www_root}/${blog_dir}" ]] && mkdir -p "${www_root}/${blog_dir}"
|
[[ ! -d "${www_root}/${blog_dir}" ]] && mkdir -p "${www_root}/${blog_dir}"
|
||||||
|
|
||||||
# Write to file
|
# Write to file
|
||||||
if (${debug}) _msg debug "_blogs: Writing ${blog} to disk: ${www_root}${blog_url}"
|
if (${debug}) _msg debug "_blogs: Writing blog to disk: ${www_root}${blog_url}"
|
||||||
echo "${blog_content}" > "${www_root}${blog_url}"
|
echo "${blog_content}" > "${www_root}${blog_url}"
|
||||||
|
|
||||||
|
unset sdate btitle ingress body blog_index blog_dir blog_url
|
||||||
|
|
||||||
done
|
done
|
||||||
# Now BLOG_META_STR_ARRAY contains the metadata string for each blog post
|
# Now BLOG_META_STR_ARRAY contains the metadata string for each blog post
|
||||||
|
Loading…
Reference in New Issue
Block a user