aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_gpg
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_ak_gpg')
-rwxr-xr-xlib/_ak_gpg3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/_ak_gpg b/lib/_ak_gpg
index d478531..d0b3b26 100755
--- a/lib/_ak_gpg
+++ b/lib/_ak_gpg
@@ -198,7 +198,8 @@ _ak_gpg_list_secret_keys_long(){
grep -A 1 '^ \{6\}' | \
tr $'\n' ' ' | \
tr '\-\-' $'\n' | \
- awk '{print $1 " " $5}' | \
+ sed -e 's/\[//g' | \
+ awk '{print $1 " " $4}' | \
sort | \
uniq
}