From 6e11ae3394c04fd9b696fc38d203050700d57692 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Tue, 4 Oct 2022 10:22:43 +0200 Subject: [PATCH] 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. --- ci-automation/gpg_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci-automation/gpg_setup.sh b/ci-automation/gpg_setup.sh index d88eea2334..066abc2c92 100644 --- a/ci-automation/gpg_setup.sh +++ b/ci-automation/gpg_setup.sh @@ -22,7 +22,7 @@ mkdir --mode=0700 "${GNUPGHOME}" # workaround. mkdir -p --mode=0700 "${GNUPGHOME}/private-keys-v1.d/" if [[ -n "${SIGNING_KEY}" ]] && [[ -n "${SIGNER}" ]]; then - gpg --import "${SIGNING_KEY}" + gpg --batch --import "${SIGNING_KEY}" else SIGNER='' fi