From deb28458b1d7219044a9e6315c5dc9cead5d6a75 Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 4 May 2020 11:22:34 +0100 Subject: [PATCH] Add fix for GPG 2.1.11 --- dev/tests/run_tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dev/tests/run_tests.sh b/dev/tests/run_tests.sh index e2d8ed0..2fd16bc 100755 --- a/dev/tests/run_tests.sh +++ b/dev/tests/run_tests.sh @@ -344,9 +344,12 @@ function test_GPG () { echo "$CRYPT_TOOL is $cryptToolVersion" if [ $cryptToolMajorVersion -eq 2 ] && [ $cryptToolSubVersion -ge 1 ]; then - if [ $cryptToolMinorVersion -ge 11 ]; then + if [ $cryptToolMinorVersion -gt 11 ]; then echo "Using --pinentry-mode loopback [$cryptToolMajorVersion.$cryptToolSubVersion.$cryptToolMinorVersion]" additionalParameters="--pinentry-mode loopback" + elif [ $cryptToolMinorVersion -eq 11 ]; then + echo "Using fix to allow --pinentry-mode loopback" + echo "allow-loopback-pinentry" >> {$HOME}/.gnupg/gpg-agent.conf else echo "Not using --pinentry-mode loopback [$cryptToolMajorVersion.$cryptToolSubVersion.$cryptToolMinorVersion]" fi