summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-07-06 14:28:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-07-06 14:28:34 -0300
commitf51408e892c350bf8204b8180424b8d6f4bd0f0c (patch)
treeaa9107a9c3d65766a78432dada834b12d6197c4d /lib
parent7c35a05b8557beb825e682675e3bfd6c53175201 (diff)
downloadkeyringer-f51408e892c350bf8204b8180424b8d6f4bd0f0c.tar.gz
keyringer-f51408e892c350bf8204b8180424b8d6f4bd0f0c.tar.bz2
Reset 'expiry' on keyringer_check_expiration (closes #62)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/functions1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index fdd8439..0360bb4 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -715,6 +715,7 @@ function keyringer_check_expiration {
fi
# Check the subkeys
+ expiry=""
for expiry in `gpg --with-colons --fixed-list-mode --list-keys "$recipient" | grep ^sub | cut -d : -f 7`; do
if [[ "$seconds" -lt "$expiry" ]]; then
not_expired="1"