mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-05 21:07:58 +00:00
Fix is_valid_recipients private key detection
This commit is contained in:
parent
528140738a
commit
c63fcf2730
2
tomb
2
tomb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user