diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-18 01:36:01 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-18 01:36:01 +0200 |
commit | 7a7f7dcc1089da00d4ae0e65a6aa1982da5c7c49 (patch) | |
tree | 1b1301ca5efd7a47d0df5727313f1d15c12e1789 /src | |
parent | a897b387195cccd5549c7345219838fdb6fb36e6 (diff) | |
download | pass-7a7f7dcc1089da00d4ae0e65a6aa1982da5c7c49.tar.gz pass-7a7f7dcc1089da00d4ae0e65a6aa1982da5c7c49.tar.bz2 pass-7a7f7dcc1089da00d4ae0e65a6aa1982da5c7c49.zip |
Specify variable gpg.
Diffstat (limited to '')
-rwxr-xr-x | src/password-store.sh | 2 |
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 |