gpg remove check for secret key

This commit is contained in:
Jaromil 2022-04-13 15:58:09 +02:00
parent 63bfc4dec6
commit 962bc7584a

14
tomb
View File

@ -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