mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-25 22:27:34 +00:00
fix detection of gpg recipient id validity
This commit is contained in:
parent
60034b0b55
commit
97343cf590
2
tomb
2
tomb
@ -969,7 +969,7 @@ is_valid_recipients() {
|
|||||||
for gpg_id in ${recipients[@]}; do
|
for gpg_id in ${recipients[@]}; do
|
||||||
trust="$(gpg --with-colons --batch --list-keys "$gpg_id" 2> /dev/null |
|
trust="$(gpg --with-colons --batch --list-keys "$gpg_id" 2> /dev/null |
|
||||||
awk 'BEGIN { FS=":" } /^pub/ { print $2; exit}')"
|
awk 'BEGIN { FS=":" } /^pub/ { print $2; exit}')"
|
||||||
[[ $? != 0 ]] && {
|
[[ "${trust}" == "" ]] && {
|
||||||
_warning "Not a valid GPG key ID: ::1 gpgid:: " $gpg_id
|
_warning "Not a valid GPG key ID: ::1 gpgid:: " $gpg_id
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user