fixed list
of open keys
This commit is contained in:
parent
4e45959e25
commit
223a32b129
1 changed files with 3 additions and 2 deletions
5
gpgtool
5
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue