Fix is_valid_recipients private key detection

This commit is contained in:
Alexandre Pujol 2017-02-09 19:18:02 +00:00
parent 528140738a
commit c63fcf2730

2
tomb
View File

@ -845,7 +845,7 @@ is_valid_recipients() {
done done
# At least one private key must be present # 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 gpg --list-secret-keys "$gpg_id" &> /dev/null
[[ $? = 0 ]] && { [[ $? = 0 ]] && {
return 0 return 0