feature: add gpg-pubkey
[webi-installers/.git] / gpg-pubkey / gpg-pubkey-id.sh
diff --git a/gpg-pubkey/gpg-pubkey-id.sh b/gpg-pubkey/gpg-pubkey-id.sh
new file mode 100644 (file)
index 0000000..dd4062b
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -e
+set -u
+
+gpg --list-secret-keys --keyid-format LONG |
+    grep sec |
+    cut -d'/' -f2 |
+    cut -d' ' -f1