summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-01-08 22:44:11 +0100
committerErich Eckner <git@eckner.net>2023-01-08 22:44:11 +0100
commit318375268fffd886af5f74fd5c059d1d52c48bc8 (patch)
treebffe2c2739ea92b6eabfc2b6551345e243c40c28
parent31423b5473678c2a314ae53bc2326e25ff0dbb16 (diff)
downloadarchlinuxewe-318375268fffd886af5f74fd5c059d1d52c48bc8.tar.xz
checkVersions: cache for 1h instead of 5 minutes
-rwxr-xr-xcheckVersions2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkVersions b/checkVersions
index 9ab38bec0..a1fb11291 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)-300))" ] &&
+ [ "0$(stat -c%Y "${cache_file}")" -gt "$(($(date +%s)-3600))" ] &&
! grep -qiF 'access denied' "${cache_file}"; then
cat "${cache_file}"
return