From 5a2b551ef9ec08289b2ee5e4e7420bb3ce290759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Fri, 2 Feb 2024 16:15:45 +0100 Subject: [PATCH] _add_blog_list_to_index: Fix write to disk --- qsgen2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index dcf3ffe..8d8660d 100755 --- a/qsgen2 +++ b/qsgen2 @@ -674,7 +674,7 @@ function _add_blog_list_to_index() { if (${debug}) _msg debug "_pages: Inserting blog list to index.html" local blog_index_list=$(<${project_dir}/blog/index.tmp.html) local site_index_file=$(<${www_root}/index.html) - awk -v new_body="$site_index_file" '{sub(/BLOGINDEX/, new_body)} 1' <(echo "${blog_index_list}") + echo "${site_index_file}" | awk -v new_body="${blog_index_list}" '{sub(/BLOGINDEX/, new_body)} 1' > "${www_root}/index.html" fi }