summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-18 01:36:01 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-18 01:36:01 +0200
commit7a7f7dcc1089da00d4ae0e65a6aa1982da5c7c49 (patch)
tree1b1301ca5efd7a47d0df5727313f1d15c12e1789 /src
parenta897b387195cccd5549c7345219838fdb6fb36e6 (diff)
downloadpass-7a7f7dcc1089da00d4ae0e65a6aa1982da5c7c49.tar.gz
pass-7a7f7dcc1089da00d4ae0e65a6aa1982da5c7c49.tar.bz2
pass-7a7f7dcc1089da00d4ae0e65a6aa1982da5c7c49.zip
Specify variable gpg.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index f872a34..ddedebd 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -102,7 +102,7 @@ reencrypt_path() {
set_gpg_recipients "$passfile_dir"
[[ $prev_gpg_recipients != "${GPG_RECIPIENTS[@]}" ]] &&
- gpg_keys="$(gpg --list-keys --keyid-format long "${GPG_RECIPIENTS[@]}" | sed -n 's/sub *.*\/\([A-F0-9]\{16\}\) .*/\1/p' | sort | uniq)"
+ gpg_keys="$($GPG --list-keys --keyid-format long "${GPG_RECIPIENTS[@]}" | sed -n 's/sub *.*\/\([A-F0-9]\{16\}\) .*/\1/p' | sort | uniq)"
current_keys="$($GPG -v --list-only --keyid-format long "$passfile" 2>&1 | cut -d ' ' -f 5 | sort | uniq)"
if [[ $gpg_keys != "$current_keys" ]]; then