Correction : adaptation de $PATH pour gpg_preset-passphrase(1).
[lhc/ateliers.git] / remote / gpg-preset-passphrase
index 36e9fd1..20fdc41 100755 (executable)
@@ -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