diff options
author | Andrew Cady <d@jerkface.net> | 2019-10-21 20:43:54 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-10-21 20:45:19 -0400 |
commit | 0013a8b47a1cf2cdd4f50bba81c786155162825c (patch) | |
tree | e60adb7e334a40d2e95cf605464689d692763c8b /src/kiki-import-stdin | |
parent | 10e5efaa69c9f0c254db13a84d3312ebaebde5dc (diff) |
add commands kiki-import-stdin & kiki-export-stdout
Diffstat (limited to 'src/kiki-import-stdin')
-rwxr-xr-x | src/kiki-import-stdin | 7 |
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 | ||
2 | tempd=$(mktemp -d) || exit | ||
3 | cat > "$tempd"/ring.gpg | ||
4 | kiki import-public --import --autosign --import-if-authentic --keyrings "$tempd"/ring.gpg | ||
5 | r=$? | ||
6 | rm -rf "$tempd" | ||
7 | exit $r | ||