diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-18 01:34:06 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-18 01:34:06 +0200 |
commit | a897b387195cccd5549c7345219838fdb6fb36e6 (patch) | |
tree | 6232104f5d1eeaa3c9d1897c88fa491835f9d338 /src | |
parent | 75929df06ef93bef65f2911359341972726f6be4 (diff) |
style: don't escape new line on &&
Diffstat (limited to 'src')
-rwxr-xr-x | src/password-store.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/password-store.sh b/src/password-store.sh index 598d1bf..f872a34 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -101,8 +101,8 @@ reencrypt_path() { passfile_display="${passfile_display%.gpg}" 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)" + [[ $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)" current_keys="$($GPG -v --list-only --keyid-format long "$passfile" 2>&1 | cut -d ' ' -f 5 | sort | uniq)" if [[ $gpg_keys != "$current_keys" ]]; then |