diff options
author | Justus Winter <[email protected]> | 2017-03-20 16:07:31 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2017-03-20 16:07:31 +0000 |
commit | 392e51dd1181d035c19918222da65d08fdb2ee6d (patch) | |
tree | 2b8fe80dbc1e75ab0571c6ac36841a4df425ffc7 | |
parent | python: Fix version check. (diff) | |
download | gpgme-392e51dd1181d035c19918222da65d08fdb2ee6d.tar.gz gpgme-392e51dd1181d035c19918222da65d08fdb2ee6d.zip |
tests: Fix distcheck.
* tests/start-stop-agent: Do not create 'gpg-agent.conf' if it does
not exist.
Fixes-commit: 16b202d9999591b71fb8bb49f6db10ef96d4cbe8
Signed-off-by: Justus Winter <[email protected]>
-rwxr-xr-x | tests/start-stop-agent | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/start-stop-agent b/tests/start-stop-agent index 457f70d7..3ce6f22a 100755 --- a/tests/start-stop-agent +++ b/tests/start-stop-agent @@ -42,7 +42,8 @@ echo "starting gpg-agent.." >&2 # loopback entry to work. Old versions do not understand this though, # so we need to be careful. if "$GPG_AGENT" --gpgconf-test --allow-loopback-pinentry && - ! grep -q allow-loopback-pinentry "$GNUPGHOME/gpg-agent.conf"; then + test -f "$GNUPGHOME/gpg-agent.conf" && + ! grep -q allow-loopback-pinentry "$GNUPGHOME/gpg-agent.conf"; then echo allow-loopback-pinentry >> "$GNUPGHOME/gpg-agent.conf" fi |