diff options
author | Erich Eckner <git@eckner.net> | 2022-07-01 09:10:24 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-07-01 09:10:24 +0200 |
commit | 56bfdf70b145cf192566630219cc4329727a58f9 (patch) | |
tree | db81542216afc9d7f4207d9e70fdb7eac14a5e55 /crypt-expiry-check.in | |
parent | ebd2f77ac15156904eab1da25dc1fca692feeb23 (diff) | |
download | crypt-expiry-check-56bfdf70b145cf192566630219cc4329727a58f9.tar.xz |
crypt-expiry-check: consider oldest date of gpg keys, not newest
Diffstat (limited to 'crypt-expiry-check.in')
-rwxr-xr-x | crypt-expiry-check.in | 2 |
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}" ] |