fix: Correct syntax error in _is_blog_cache_stale function
- Replace incorrect closing braces with 'fi' in conditional statements
This commit is contained in:
parent
c56212379c
commit
aa580887fc
4
qsgen2
4
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user