diff options
-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 ' ) |