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 }