Correction : adaptation de $PATH pour gpg_preset-passphrase(1).
authorJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Thu, 26 Sep 2013 13:47:54 +0000 (15:47 +0200)
committerJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Thu, 26 Sep 2013 13:47:57 +0000 (15:47 +0200)
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