Skip to content

Commit d7c4318

Browse files
committed
add --fingerprint flag for reading keys
1 parent cb8484a commit d7c4318

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/gpg.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ async function getUsernames(keyId /* : string */) {
4949

5050
async function listKnownPublicKeys() {
5151
const { all, stdout } = await execa(await exe(), [
52-
'--list-public-keys',
52+
'--list-keys',
53+
'--fingerprint',
5354
'--textmode',
5455
]);
55-
debug('listKnownPublicKeys(): gpg --list-public-keys --textmode\n%s', all);
56+
debug('listKnownPublicKeys(): gpg --list-keys --fingerprint --textmode\n%s', all);
5657

5758
return stdout
5859
.split('\n\n')

0 commit comments

Comments
 (0)