projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
feature: add gpg-pubkey
[webi-installers/.git]
/
gpg-pubkey
/
gpg-pubkey-id.ps1
diff --git a/gpg-pubkey/gpg-pubkey-id.ps1
b/gpg-pubkey/gpg-pubkey-id.ps1
new file mode 100644
(file)
index 0000000..
b15d700
--- /dev/null
+++ b/
gpg-pubkey/gpg-pubkey-id.ps1
@@ -0,0
+1,8
@@
+#!/usr/bin/env pwsh
+
+gpg --list-secret-keys --keyid-format LONG |
+ Select-String -Pattern '\.*sec.*\/' |
+ Select-Object Line |
+ ForEach-Object {
+ $_.Line.split('/')[1].split(' ')[0]
+ }