mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-22 12:35:13 +00:00
gpg remove check for secret key
This commit is contained in:
parent
63bfc4dec6
commit
962bc7584a
14
tomb
14
tomb
@ -980,14 +980,14 @@ 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 --with-colons --batch --list-secret-keys "$gpg_id" &> /dev/null
|
# gpg --with-colons --batch --list-secret-keys "$gpg_id" &> /dev/null
|
||||||
[[ $? = 0 ]] && {
|
# [[ $? = 0 ]] && {
|
||||||
return 0
|
# return 0
|
||||||
}
|
# }
|
||||||
done
|
# done
|
||||||
|
|
||||||
return 1
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# $@ is the list of all the recipient used to encrypt a tomb key
|
# $@ is the list of all the recipient used to encrypt a tomb key
|
||||||
|
Loading…
Reference in New Issue
Block a user