From: Silvio Rhatto Date: Mon, 19 Dec 2016 14:27:43 +0000 (-0200) Subject: Coding style X-Git-Tag: 0.5.0~7 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3a84664504c1263cc947735811285ba487305dde;p=keyringer.git Coding style --- 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"