summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Pujol <alexandre@pujol.io>2017-02-09 19:18:02 (GMT)
committer Alexandre Pujol <alexandre@pujol.io>2017-02-09 19:18:02 (GMT)
commitc63fcf2730507ad38f0fcb557cace64099310c17 (patch)
tree9ba4c9554b5952303a866e24a4a76173ab0628c5
parent528140738a26991b55186c856cea22cf580df38a (diff)
Fix is_valid_recipients private key detection
-rw-r--r--tomb2
1 files changed, 1 insertions, 1 deletions
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