From d8801d3b3f6ee69e34d5dde1a29203d14db4cfd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 12 Feb 2024 22:19:50 +0100 Subject: [PATCH] Add debug messages to _blog_index function in qsgen2 script --- qsgen2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index 9a71060..c9da440 100755 --- a/qsgen2 +++ b/qsgen2 @@ -916,10 +916,11 @@ function _blog_index() { if (${debug}); then _msg debug "_blog_index: Writing ${www_root}/blog/index.html" + _msg debug "_blog_index: Content length of blog_index_content: ${#blog_index_content}" _msg debug "_blog_index: Content of blog_index_content" _msg sub "${blog_index_content}" fi - echo "$blog_index_content" > ${www_root}/blog/index.html || { + printf "%s" "$blog_index_content" > ${www_root}/blog/index.html || { echo "Failed to write to ${www_root}/blog/index.html" exit 1 }