From ba454e41f67d22e0baa4388e130d9e0c03813bc3 Mon Sep 17 00:00:00 2001 From: Axel Tripier Date: Fri, 2 Jul 2021 18:56:38 +0200 Subject: Add missing local variable declaration --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3