chiark / gitweb /
gpg-refresh-cache: accept key ID as optional arg
authorColin Watson <cjwatson@debian.org>
Fri, 22 Dec 2017 13:23:06 +0000 (13:23 +0000)
committerColin Watson <cjwatson@debian.org>
Fri, 22 Dec 2017 13:23:06 +0000 (13:23 +0000)
gpg-refresh-cache

index 65bdb08..9d35aff 100755 (executable)
@@ -2,4 +2,4 @@
 TMPDIR="$(mktemp -d /tmp/gpg-refresh-cache.XXXXXX)"
 trap 'rm -rf "$TMPDIR"' EXIT
 touch "$TMPDIR/foo"
-gpg --clearsign "$TMPDIR/foo"
+gpg ${1:+-u "$1"} --clearsign "$TMPDIR/foo"