Add debug messages to _blog_index function in qsgen2 script

This commit is contained in:
Stig-Ørjan Smelror 2024-02-12 22:19:50 +01:00
parent 953986f0af
commit d8801d3b3f

3
qsgen2
View File

@ -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
}