diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-12-19 12:27:43 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-12-19 12:27:43 -0200 |
commit | 3a84664504c1263cc947735811285ba487305dde (patch) | |
tree | 6978e330b62a3dd407f3b2f247bd27ea8143ce80 | |
parent | c12b5c6c7eccb8e0922ff034bb3690774e12998c (diff) | |
download | keyringer-3a84664504c1263cc947735811285ba487305dde.tar.gz keyringer-3a84664504c1263cc947735811285ba487305dde.tar.bz2 |
Coding style
-rwxr-xr-x | lib/keyringer/functions | 6 |
1 files changed, 4 insertions, 2 deletions
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" |