mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-22 18:18:59 +00:00
gpg remove check for secret key
This commit is contained in:
parent
97343cf590
commit
8be3e7d2a0
14
tomb
14
tomb
@ -980,14 +980,14 @@ is_valid_recipients() {
|
||||
done
|
||||
|
||||
# At least one private key must be present
|
||||
for gpg_id in ${recipients[@]}; do
|
||||
gpg --with-colons --batch --list-secret-keys "$gpg_id" &> /dev/null
|
||||
[[ $? = 0 ]] && {
|
||||
return 0
|
||||
}
|
||||
done
|
||||
# for gpg_id in ${recipients[@]}; do
|
||||
# gpg --with-colons --batch --list-secret-keys "$gpg_id" &> /dev/null
|
||||
# [[ $? = 0 ]] && {
|
||||
# return 0
|
||||
# }
|
||||
# done
|
||||
|
||||
return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
# $@ is the list of all the recipient used to encrypt a tomb key
|
||||
|
Loading…
Reference in New Issue
Block a user