Fix cache expiration according to comment

'mh+1' means 1 hour
This commit is contained in:
Shohei YOSHIDA 2026-03-25 23:28:17 +09:00
parent e461417f4e
commit 77ec5ecd6b
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ _gist() {
_gist_cache_policy() { _gist_cache_policy() {
# rebuild if cache is more than a day old # rebuild if cache is more than a day old
local -a oldp local -a oldp
oldp=( "$1"(mh+1) ) oldp=( "$1"(m+1) )
(( $#oldp )) (( $#oldp ))
} }