diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-08-05 11:15:09 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-08-05 11:15:09 +0200 |
commit | eaf9da0f617bc15fd139bb3ee4ce36754725c4a9 (patch) | |
tree | 13e075a6531d99fa44f5818fa4069aa8a8487ce8 | |
parent | 7023feb907d50bf5e438a6f292a1e54bb412cec6 (diff) | |
download | archlinuxewe-eaf9da0f617bc15fd139bb3ee4ce36754725c4a9.tar.xz |
sign-and-upload-all: only check signatures of files newer than 24h
-rwxr-xr-x | sign-and-upload-all | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sign-and-upload-all b/sign-and-upload-all index 874a3c43f..4dd12a2b9 100755 --- a/sign-and-upload-all +++ b/sign-and-upload-all @@ -33,9 +33,13 @@ for distro in arch artix; do '"'"' \ | while read -r f; do [ -f "os/'"${arch}"'/${f}" ] \ - && [ -f "os/'"${arch}"'/${f}.sig" ] \ - && gpg --verify "os/'"${arch}"'/${f}.sig" "os/'"${arch}"'/${f}" 2>/dev/null \ - && echo "${f}" + || continue + [ -f "os/'"${arch}"'/${f}.sig" ] \ + || continue + [ "$(stat -c %Y "os/'"${arch}"'/${f}.sig")" -lt $(($(date +%s)-60*60*24)) ] \ + || gpg --verify "os/'"${arch}"'/${f}.sig" "os/'"${arch}"'/${f}" 2>/dev/null \ + || continue + echo "${f}" done ' ) |