From 0af7129cd50ed8a3ba4e193800edb6f4ea4a6987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 12 Feb 2024 21:53:26 +0100 Subject: [PATCH] Refactor _blog_index function in qsgen2 script - Change the debug message to use instead of - Update the echo command to use double quotes around These changes improve the readability and consistency of the code. --- qsgen2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qsgen2 b/qsgen2 index db7c00a..9b30d7c 100755 --- a/qsgen2 +++ b/qsgen2 @@ -917,9 +917,9 @@ function _blog_index() { if (${debug}); then _msg debug "_blog_index: Writing ${www_root}/blog/index.html" _msg debug "_blog_index: Content of blog_index_content" - _msg info "${blog_index_content}" + _msg sub "${blog_index_content}" fi - echo "${blog_index_content}" > ${www_root}/blog/index.html + echo "$blog_index_content" > ${www_root}/blog/index.html _f_last_updated ${www_root}/blog/index.html fi