summaryrefslogtreecommitdiff
path: root/sign-and-upload-all
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-08-05 11:15:09 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-08-05 11:15:09 +0200
commiteaf9da0f617bc15fd139bb3ee4ce36754725c4a9 (patch)
tree13e075a6531d99fa44f5818fa4069aa8a8487ce8 /sign-and-upload-all
parent7023feb907d50bf5e438a6f292a1e54bb412cec6 (diff)
downloadarchlinuxewe-eaf9da0f617bc15fd139bb3ee4ce36754725c4a9.tar.xz
sign-and-upload-all: only check signatures of files newer than 24h
Diffstat (limited to 'sign-and-upload-all')
-rwxr-xr-xsign-and-upload-all10
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
'
)