Add debug messages to _blog_index function in qsgen2 script
This commit is contained in:
parent
953986f0af
commit
d8801d3b3f
3
qsgen2
3
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user