From 8a9f4eed88bf760053ff88dbea778b3ca3151172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 12 Feb 2024 22:47:27 +0100 Subject: [PATCH] Fix debug flag in _blog_index function Changed the debug flag in the _blog_index function from true to false to disable debugging for the function. Also, modified the file write operation to directly write the blog_index_content to /blog/index.html instead of using a temporary file --- qsgen2 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/qsgen2 b/qsgen2 index 90a494b..8234e42 100755 --- a/qsgen2 +++ b/qsgen2 @@ -895,7 +895,7 @@ function _blog_index() { local debug=true else # If you want to debug this function only, set this to true - local debug=true + local debug=false fi # This function generates the www_root/blog/index.html file that gets its data from _blog_list_for_index() @@ -923,10 +923,8 @@ function _blog_index() { #_msg debug "_blog_index: Content of blog_index_content" #_msg sub "${blog_index_content}" fi - echo "$blog_index_content" > /tmp/blog_index_temp.html - _f_last_updated /tmp/blog_index_temp.html - # _f_last_updated ${www_root}/blog/index.html - cp -f /tmp/blog_index_temp.html ${www_root}/blog/index.html + echo "$blog_index_content" > ${www_root}/blog/index.html + _f_last_updated ${www_root}/blog/index.html fi