From eaf9da0f617bc15fd139bb3ee4ce36754725c4a9 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 5 Aug 2024 11:15:09 +0200 Subject: sign-and-upload-all: only check signatures of files newer than 24h --- sign-and-upload-all | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sign-and-upload-all') 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 ' ) -- cgit v1.2.3-70-g09d2