From f5780454f523d888181ea17ca3c0fe63d35ef3f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Thu, 1 Feb 2024 10:20:38 +0100 Subject: [PATCH] _blogs: Try unsetting variables at the end of the for loop --- qsgen2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index ddecce4..4a70e53 100755 --- a/qsgen2 +++ b/qsgen2 @@ -538,8 +538,10 @@ function _blogs() { [[ ! -d "${www_root}/${blog_dir}" ]] && mkdir -p "${www_root}/${blog_dir}" # 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}" + + unset sdate btitle ingress body blog_index blog_dir blog_url done # Now BLOG_META_STR_ARRAY contains the metadata string for each blog post