chiark / gitweb /
gpg-refresh-cache: new tool to facilitate use of gnupg-agent
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 4 Jul 2005 13:54:20 +0000 (13:54 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 4 Jul 2005 13:54:20 +0000 (13:54 +0000)
gpg-refresh-cache [new file with mode: 0755]

diff --git a/gpg-refresh-cache b/gpg-refresh-cache
new file mode 100755 (executable)
index 0000000..65bdb08
--- /dev/null
@@ -0,0 +1,5 @@
+#! /bin/sh
+TMPDIR="$(mktemp -d /tmp/gpg-refresh-cache.XXXXXX)"
+trap 'rm -rf "$TMPDIR"' EXIT
+touch "$TMPDIR/foo"
+gpg --clearsign "$TMPDIR/foo"