add --pinentry-mode loopback option
authorMichael Wallner <mike@php.net>
Fri, 9 Nov 2018 06:47:28 +0000 (07:47 +0100)
committerMichael Wallner <mike@php.net>
Fri, 9 Nov 2018 06:47:28 +0000 (07:47 +0100)
bin/gpg-sign

index df0ddc950f84ab229f10745ef2268facd0f4143e..19cd4fdd0bc5421ba9c16bd95d016e10a650a103 100755 (executable)
@@ -30,7 +30,7 @@ if (($pwd = getenv("REPLICATOR_PWD"))) {
        $stream = STDIN;
 }
 
-$proc = proc_open("gpg --batch --no-tty -a --detach-sign --passphrase-fd 3 --output $dir/$basename.asc $src", [
+$proc = proc_open("gpg --batch --pinentry-mode loopback --no-tty -a --detach-sign --passphrase-fd 3 --output $dir/$basename.asc $src", [
        ["pipe", "r"],
        ["pipe", "w"],
        ["file", $log, "a"],