From 223a32b129946e5e2899958d6db7e0ce5d564f58 Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Tue, 19 Jul 2022 13:30:08 +0200 Subject: [PATCH] fixed `list` of open keys --- gpgtool | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gpgtool b/gpgtool index 23f3f03..fb12095 100755 --- a/gpgtool +++ b/gpgtool @@ -135,12 +135,13 @@ list () { done echo - if [[ -z "$(ls -l ${_pkdir} | grep ^l)" ]] + pkdir="${tempdir}/gpghome/private-keys-v1.d" + if [[ -z "$(ls -l ${pkdir} | grep ^l)" ]] then echo "No open keys. Try \`gpgtool open FINGERPRINT [FINGERPRINT …]\`." else echo "Currently Opened Keys:" - ls -l ${_pkdir} | grep ^l | awk {'print $NF'} + ls -l ${pkdir} | grep ^l | awk {'print $NF'} fi }