diff options
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 | ||