From f96ee2e9c04de7555958a5afdc5c3c80760742d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 3 Feb 2024 18:42:56 +0100 Subject: [PATCH] _blogs: If new blogs, run functions --- qsgen2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/qsgen2 b/qsgen2 index f89edf7..85aa64e 100755 --- a/qsgen2 +++ b/qsgen2 @@ -568,10 +568,12 @@ function _blogs() { _msg sub "- No new or updated Blogs found" export new_updated_blogs=false fi -_msg sub "_blogs: Running _blog_idx_for_index" -_blog_idx_for_index -_msg sub "_blogs: Running _blog_index" -_blog_index +if [[ ${new_updated_blogs} == "true" ]]; then + if (${debug}) _msg sub "* _blogs: Running _blog_idx_for_index" + _blog_idx_for_index + if (${debug}) _msg sub "* _blogs: Running _blog_index" + _blog_index +fi }