summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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"