ci-automation: use --batch when importing gpg key

All invocations of gpg in ci-automation pass --batch as an argument except the
import. Be consistent by having it included everywhere. Additionally, since
ci-automation runs wrapped in a systemd service, no tty is available so batch
is needed for correctness.
This commit is contained in:
Jeremi Piotrowski 2022-10-04 10:22:43 +02:00
parent eb9558ffd0
commit 6e11ae3394

View File

@ -22,7 +22,7 @@ mkdir --mode=0700 "${GNUPGHOME}"
# workaround. # workaround.
mkdir -p --mode=0700 "${GNUPGHOME}/private-keys-v1.d/" mkdir -p --mode=0700 "${GNUPGHOME}/private-keys-v1.d/"
if [[ -n "${SIGNING_KEY}" ]] && [[ -n "${SIGNER}" ]]; then if [[ -n "${SIGNING_KEY}" ]] && [[ -n "${SIGNER}" ]]; then
gpg --import "${SIGNING_KEY}" gpg --batch --import "${SIGNING_KEY}"
else else
SIGNER='' SIGNER=''
fi fi