summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-07-01 09:10:24 +0200
committerErich Eckner <git@eckner.net>2022-07-01 09:10:24 +0200
commit56bfdf70b145cf192566630219cc4329727a58f9 (patch)
treedb81542216afc9d7f4207d9e70fdb7eac14a5e55
parentebd2f77ac15156904eab1da25dc1fca692feeb23 (diff)
downloadcrypt-expiry-check-56bfdf70b145cf192566630219cc4329727a58f9.tar.xz
crypt-expiry-check: consider oldest date of gpg keys, not newest
-rwxr-xr-xcrypt-expiry-check.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypt-expiry-check.in b/crypt-expiry-check.in
index 2b3576e..2fe37ff 100755
--- a/crypt-expiry-check.in
+++ b/crypt-expiry-check.in
@@ -495,7 +495,7 @@ check_gpg_key_status() {
echo "${KEY_INFO}" | \
${GREP} "\[\(expire[ds]\|verfallen\|verf..\?llt\):[^]]*]" | \
${SED} "s#^.*\[\(expire[ds]\|verfallen\|verf..\?llt\):\s*\(\S[^]]*\)].*\$#\2#" | \
- ${SORT} | \
+ ${SORT} -r | \
${TAIL} -n1
)
if [ -z "${KEY_DATE_STR}" ]