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 <mail@eworm.de>
This commit is contained in:
parent
0d99720ded
commit
44f69d009f
11
update-keys
11
update-keys
@ -8,7 +8,16 @@ TMPDIR=$(mktemp -d)
|
|||||||
trap "rm -rf '${TMPDIR}'" EXIT
|
trap "rm -rf '${TMPDIR}'" EXIT
|
||||||
|
|
||||||
KEYSERVER='hkp://pool.sks-keyservers.net'
|
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
|
pushd "$(dirname "$0")" >/dev/null
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user