tests: Fix distcheck.
* tests/start-stop-agent: Do not create 'gpg-agent.conf' if it does
not exist.
Fixes-commit: 16b202d999
Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
57e64d019d
commit
392e51dd11
@ -42,6 +42,7 @@ echo "starting gpg-agent.." >&2
|
|||||||
# loopback entry to work. Old versions do not understand this though,
|
# loopback entry to work. Old versions do not understand this though,
|
||||||
# so we need to be careful.
|
# so we need to be careful.
|
||||||
if "$GPG_AGENT" --gpgconf-test --allow-loopback-pinentry &&
|
if "$GPG_AGENT" --gpgconf-test --allow-loopback-pinentry &&
|
||||||
|
test -f "$GNUPGHOME/gpg-agent.conf" &&
|
||||||
! grep -q allow-loopback-pinentry "$GNUPGHOME/gpg-agent.conf"; then
|
! grep -q allow-loopback-pinentry "$GNUPGHOME/gpg-agent.conf"; then
|
||||||
echo allow-loopback-pinentry >> "$GNUPGHOME/gpg-agent.conf"
|
echo allow-loopback-pinentry >> "$GNUPGHOME/gpg-agent.conf"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user