m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAxel Tripier <axel@tripier.fr>2021-07-02 18:56:38 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-09-23 15:27:29 -0600
commitba454e41f67d22e0baa4388e130d9e0c03813bc3 (patch)
tree994439ae5c4298b93d2743c09f278891dcd6263d /src
parenta80a3189458a86f29f61d980b4ad977594199864 (diff)
Add missing local variable declaration
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 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