Skip to content
Snippets Groups Projects
Commit 44f69d00 authored by Eli Schwartz's avatar Eli Schwartz Committed by Christian Hesse
Browse files

update-keys: use gpg.conf to persist versions


It is easier than passing around a dozen options on the command line.

Signed-off-by: default avatarChristian Hesse <mail@eworm.de>
parent 0d99720d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment