mirror of
https://github.com/flatcar/scripts.git
synced 2026-01-23 17:32:07 +01:00
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. (cherry picked from commit 6e11ae3394c04fd9b696fc38d203050700d57692)
This commit is contained in:
parent
c1ed20ce23
commit
cb803037c7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user