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
|
done
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [[ -z "$(ls -l ${_pkdir} | grep ^l)" ]]
|
pkdir="${tempdir}/gpghome/private-keys-v1.d"
|
||||||
|
if [[ -z "$(ls -l ${pkdir} | grep ^l)" ]]
|
||||||
then
|
then
|
||||||
echo "No open keys. Try \`gpgtool open FINGERPRINT [FINGERPRINT …]\`."
|
echo "No open keys. Try \`gpgtool open FINGERPRINT [FINGERPRINT …]\`."
|
||||||
else
|
else
|
||||||
echo "Currently Opened Keys:"
|
echo "Currently Opened Keys:"
|
||||||
ls -l ${_pkdir} | grep ^l | awk {'print $NF'}
|
ls -l ${pkdir} | grep ^l | awk {'print $NF'}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue