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
@@ -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]
+    }