mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-21 13:41:20 +02: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.
This commit is contained in:
parent
eb9558ffd0
commit
6e11ae3394
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user