X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=remote%2Fgpg-preset-passphrase;h=20fdc4133bcd63bfcb875512dc3984fcdafd532e;hp=36e9fd1109e8d6bbd4038807d88ee6c448313182;hb=a9f810d18a88334e3f87cb0324d8921a26ec90ec;hpb=13b6bc55dac66117da1c713d9b23f2879a8bd6d2 diff --git a/remote/gpg-preset-passphrase b/remote/gpg-preset-passphrase index 36e9fd1..20fdc41 100755 --- a/remote/gpg-preset-passphrase +++ b/remote/gpg-preset-passphrase @@ -15,7 +15,7 @@ if ! grep -Fqx allow-preset-passphrase $HOME/.gnupg/gpg-agent.conf && fi command=$1; shift -PATH=/usr/lib/gnupg2:"$PATH" +PATH="$PATH$(find /usr/lib/ -mindepth 2 -maxdepth 3 -type f -executable -name gpg-preset-passphrase -printf ':%h')" for uid in "$@" do pass_file="$tool"/var/sec/openpgp/"$uid".pass.gpg