From aa580887fce6e45bdc9a5b30e93a260f3f9daff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sun, 18 May 2025 12:52:55 +0200 Subject: [PATCH] fix: Correct syntax error in _is_blog_cache_stale function - Replace incorrect closing braces with 'fi' in conditional statements --- qsgen2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qsgen2 b/qsgen2 index f0fd159..aabeb97 100755 --- a/qsgen2 +++ b/qsgen2 @@ -352,13 +352,13 @@ function _is_blog_cache_stale() { if [[ ${new_updated_blogs} == "true" ]]; then if (${debug}) _msg debug "Blog cache stale: New or updated blogs detected" return 0 - } + fi # If cache file doesn't exist, it's stale if [[ ! -f "${blog_cache_file}" ]]; then if (${debug}) _msg debug "Blog cache stale: Cache file does not exist" return 0 - } + fi # Check if cache is older than 1 hour (3600 seconds) local cache_mtime=$(stat -c %Y "${blog_cache_file}" 2>/dev/null || echo 0)