From 3a84664504c1263cc947735811285ba487305dde Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 19 Dec 2016 12:27:43 -0200 Subject: Coding style --- lib/keyringer/functions | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/keyringer/functions b/lib/keyringer/functions index fd0176b..d2a83f4 100755 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -725,10 +725,12 @@ function keyringer_check_expiration { local subkey="" for subkey in $(gpg --with-colons --fixed-list-mode --list-keys "$recipient" | grep ^sub); do local expiry=$(cut -d : -f 7 <<< "$subkey") + if [[ -z "$expiry" ]]; then - not_expired=1 - break + not_expired=1 + break fi + if [[ "$seconds" -lt "$expiry" ]]; then not_expired="1" -- cgit v1.2.3