summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-01-08 22:47:03 +0100
committerErich Eckner <git@eckner.net>2023-01-08 22:47:03 +0100
commitf428a9a2ac7f9b97c971ef19b13c0701fd9d4ef9 (patch)
treed1dcb68a7235f1019b21d59f7483a1433868070b
parentf79ac865e2fb4e2ee22c2eaadbbfdd6b89d08f16 (diff)
downloadarchlinuxewe-f428a9a2ac7f9b97c971ef19b13c0701fd9d4ef9.tar.xz
checkVersions: cache for 1 day instead of 1 hour
-rwxr-xr-xcheckVersions2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkVersions b/checkVersions
index a1fb11291..748677e6f 100755
--- a/checkVersions
+++ b/checkVersions
@@ -27,7 +27,7 @@ curl_it() {
cache_file="${curl_cache}/${cache_file}"
if ${use_cache} && \
[ -s "${cache_file}" ] && \
- [ "0$(stat -c%Y "${cache_file}")" -gt "$(($(date +%s)-3600))" ] &&
+ [ "0$(stat -c%Y "${cache_file}")" -gt "$(($(date +%s)-86400))" ] &&
! grep -qiF 'access denied' "${cache_file}"; then
cat "${cache_file}"
return