summaryrefslogtreecommitdiff
path: root/src/kiki-import-stdin
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-10-21 20:43:54 -0400
committerAndrew Cady <d@jerkface.net>2019-10-21 20:45:19 -0400
commit0013a8b47a1cf2cdd4f50bba81c786155162825c (patch)
treee60adb7e334a40d2e95cf605464689d692763c8b /src/kiki-import-stdin
parent10e5efaa69c9f0c254db13a84d3312ebaebde5dc (diff)
add commands kiki-import-stdin & kiki-export-stdout
Diffstat (limited to 'src/kiki-import-stdin')
-rwxr-xr-xsrc/kiki-import-stdin7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kiki-import-stdin b/src/kiki-import-stdin
new file mode 100755
index 0000000..2fd25d6
--- /dev/null
+++ b/src/kiki-import-stdin
@@ -0,0 +1,7 @@
1#!/bin/sh
2tempd=$(mktemp -d) || exit
3cat > "$tempd"/ring.gpg
4kiki import-public --import --autosign --import-if-authentic --keyrings "$tempd"/ring.gpg
5r=$?
6rm -rf "$tempd"
7exit $r