diff options
author | Erich Eckner <git@eckner.net> | 2021-04-13 09:12:47 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-04-13 09:12:55 +0200 |
commit | fba1a0a56c3d93782fa81646926e330d0269369b (patch) | |
tree | 90b652ec5d1f7ed07c127466a58ac6d9f6166b2e /checkVersions | |
parent | 4f8ae80befbbc0001c43dfb505409fa6f170d289 (diff) | |
download | archlinuxewe-fba1a0a56c3d93782fa81646926e330d0269369b.tar.xz |
checkVersions: make more fail safe
Diffstat (limited to 'checkVersions')
-rwxr-xr-x | checkVersions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checkVersions b/checkVersions index 5d789bad0..71f165d28 100755 --- a/checkVersions +++ b/checkVersions @@ -27,7 +27,7 @@ curl_it() { cache_file="${curl_cache}/${cache_file}" if ${use_cache} && \ [ -s "${cache_file}" ] && \ - [ $(stat -c%Y "${cache_file}") -gt $(($(date +%s)-300)) ] && + [ "0$(stat -c%Y "${cache_file}")" -gt "$(($(date +%s)-300))" ] && ! grep -qiF 'access denied' "${cache_file}"; then cat "${cache_file}" return |