aboutsummaryrefslogtreecommitdiff
path: root/bin/gpg-wrapper
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2012-09-28 12:37:38 +0100
committerRyan Kavanagh <rak@debian.org>2012-09-28 12:37:38 +0100
commitee357bbbe62c5642323c79d2787fd14df884cab5 (patch)
tree18af99a579d633909b72ebe0575802c25587ad3d /bin/gpg-wrapper
parentDon't explicitly refer to grep's path in run-mailcheck (diff)
Abstract location of GPG in Make & scirpts to a SUBSTS var; binary is called gpg2 or gpg depending on system
Diffstat (limited to 'bin/gpg-wrapper')
-rwxr-xr-xbin/gpg-wrapper4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gpg-wrapper b/bin/gpg-wrapper
index a550858..614fbee 100755
--- a/bin/gpg-wrapper
+++ b/bin/gpg-wrapper
@@ -26,12 +26,12 @@ fi
# --lock-never is needed since encfs doesn't support locking any more
if [ -f ${decrypted_dir}/gpg.conf ]
then
- exec gpg --lock-never --homedir ${decrypted_dir} $@
+ exec GPG_BINARY --lock-never --homedir ${decrypted_dir} $@
else
gpg-mounter
if [ -f ${decrypted_dir}/gpg.conf ]
then
- exec gpg --lock-never --homedir ${decrypted_dir} $@
+ exec GPG_BINARY --lock-never --homedir ${decrypted_dir} $@
else
echo 'No gnupg.conf in ${decrypted_dir}'
exit 1