From: Julien Moutinho Date: Thu, 26 Sep 2013 13:47:54 +0000 (+0200) Subject: Correction : adaptation de $PATH pour gpg_preset-passphrase(1). X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=commitdiff_plain;h=a9f810d18a88334e3f87cb0324d8921a26ec90ec Correction : adaptation de $PATH pour gpg_preset-passphrase(1). --- 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