diff options
author | Axel Tripier <axel@tripier.fr> | 2021-07-02 18:56:38 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-09-23 15:27:29 -0600 |
commit | ba454e41f67d22e0baa4388e130d9e0c03813bc3 (patch) | |
tree | 994439ae5c4298b93d2743c09f278891dcd6263d | |
parent | a80a3189458a86f29f61d980b4ad977594199864 (diff) |
Add missing local variable declaration
-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 f6c5328..dd627b9 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -70,6 +70,7 @@ verify_file() { set_gpg_recipients() { GPG_RECIPIENT_ARGS=( ) GPG_RECIPIENTS=( ) + local gpg_id if [[ -n $PASSWORD_STORE_KEY ]]; then for gpg_id in $PASSWORD_STORE_KEY; do @@ -98,7 +99,6 @@ set_gpg_recipients() { verify_file "$current" - local gpg_id while read -r gpg_id; do gpg_id="${gpg_id%%#*}" # strip comment [[ -n $gpg_id ]] || continue |