Merge pull request #1248 from zsh-users/cache-expiration-date

Fix cache expiration according to comment
This commit is contained in:
Shohei YOSHIDA 2026-03-26 11:26:39 +09:00 committed by GitHub
commit b1ffb771c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 ))
} }