summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}" ]