From c63fcf2730507ad38f0fcb557cace64099310c17 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 9 Feb 2017 19:18:02 +0000 Subject: [PATCH] Fix is_valid_recipients private key detection --- tomb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomb b/tomb index bb7b111..ac920be 100644 --- a/tomb +++ b/tomb @@ -845,7 +845,7 @@ is_valid_recipients() { done # At least one private key must be present - for gpg_id in $recipients; do + for gpg_id in ${recipients[@]}; do gpg --list-secret-keys "$gpg_id" &> /dev/null [[ $? = 0 ]] && { return 0