From 44f69d009f485456813bf46609ff83b2ff06a0c5 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 5 Aug 2019 17:16:04 -0400 Subject: [PATCH] update-keys: use gpg.conf to persist versions It is easier than passing around a dozen options on the command line. Signed-off-by: Christian Hesse --- update-keys | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/update-keys b/update-keys index a6e7aa9..a4c5898 100755 --- a/update-keys +++ b/update-keys @@ -8,7 +8,16 @@ TMPDIR=$(mktemp -d) trap "rm -rf '${TMPDIR}'" EXIT KEYSERVER='hkp://pool.sks-keyservers.net' -GPG=(gpg --quiet --batch --no-tty --no-permission-warning --export-options no-export-attributes --keyserver "${KEYSERVER}" --homedir "${TMPDIR}") +GPG=(gpg --homedir "${TMPDIR}") + +cat << __EOF__ > "${TMPDIR}"/gpg.conf +quiet +batch +no-tty +no-permission-warning +export-options no-export-attributes +keyserver ${KEYSERVER} +__EOF__ pushd "$(dirname "$0")" >/dev/null