summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-12-19 12:27:43 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-12-19 12:27:43 -0200
commit3a84664504c1263cc947735811285ba487305dde (patch)
tree6978e330b62a3dd407f3b2f247bd27ea8143ce80
parentc12b5c6c7eccb8e0922ff034bb3690774e12998c (diff)
downloadkeyringer-3a84664504c1263cc947735811285ba487305dde.tar.gz
keyringer-3a84664504c1263cc947735811285ba487305dde.tar.bz2
Coding style
-rwxr-xr-xlib/keyringer/functions6
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"