From 4bc7803e03e60345c3a70dac2c50020181c6a881 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 14 Mar 2014 13:33:33 -0300 Subject: Added "destroy" alias to "teardown" action --- lib/keyringer/actions/destroy | 1 + 1 file changed, 1 insertion(+) create mode 120000 lib/keyringer/actions/destroy (limited to 'lib') diff --git a/lib/keyringer/actions/destroy b/lib/keyringer/actions/destroy new file mode 120000 index 0000000..c523618 --- /dev/null +++ b/lib/keyringer/actions/destroy @@ -0,0 +1 @@ +teardown \ No newline at end of file -- cgit v1.2.3 From c26e7a4cb2b5b88bca604ed9a0fb16bfc10b20b4 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 14 Mar 2014 13:37:51 -0300 Subject: Make usage more readable --- lib/keyringer/functions | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/keyringer/functions b/lib/keyringer/functions index 0b084af..e0cccec 100755 --- a/lib/keyringer/functions +++ b/lib/keyringer/functions @@ -519,14 +519,18 @@ function keyringer_usage { printf "Keyringer $KEYRINGER_VERSION\n" printf "Usage: %s [arguments]\n\n" "$BASENAME" - printf "Available actions: \n\n" - keyringer_show_actions | sed -e 's/^/\t/' # Display only when not in a keyring context if [ ! -z "$keyrings" ] && [ -z "$1" ]; then - printf "\tinit [remote]\n\n" $BASENAME printf "Available keyrings: %s \n" "$keyrings" fi + + # Show available actions + printf "Available actions: \n\n" + if [ ! -z "$keyrings" ] && [ -z "$1" ]; then + printf "\tinit [remote]\n" $BASENAME + fi + keyringer_show_actions | sed -e 's/^/\t/' } # Check repository integrity -- cgit v1.2.3 From 68e1e1b26bf220e0a5dde780cd6437d9965df89c Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 14 Mar 2014 13:48:18 -0300 Subject: Subkey expiration date check shall not happen with expired keys --- lib/keyringer/functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3