aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrhatto <rhatto@ratatosk.fluxo.info>2014-03-14 13:48:18 -0300
committerrhatto <rhatto@ratatosk.fluxo.info>2014-03-14 13:48:18 -0300
commit68e1e1b26bf220e0a5dde780cd6437d9965df89c (patch)
tree71a0b95581fdcfd203beae7fb7aea8d15c0def1f /lib
parentbffd44cdc3d22b940517c66b736a691bd01f80fa (diff)
downloadkeyringer-68e1e1b26bf220e0a5dde780cd6437d9965df89c.tar.gz
keyringer-68e1e1b26bf220e0a5dde780cd6437d9965df89c.tar.bz2
Subkey expiration date check shall not happen with expired keys
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index e0cccec..832385e 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -711,10 +711,10 @@ function keyringer_check_expiration {
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"
- fi
- if [[ "$ahead" -gt "$expiry" ]] && [ "$BASENAME" == "check" ]; then
- echo "Warning: subkey from $recipient will expire soon, on `date --date="@$expiry"`"
+ if [[ "$ahead" -gt "$expiry" ]] && [ "$BASENAME" == "check" ]; then
+ echo "Warning: subkey from $recipient will expire soon, on `date --date="@$expiry"`"
+ fi
fi
done