This commit is contained in:
Bob Mottram 2016-06-10 09:53:21 +01:00
parent daaaade8f2
commit f6eec19b9c
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
1 changed files with 2 additions and 2 deletions

View File

@ -760,8 +760,8 @@ function gpg_key_trust {
255) return;; 255) return;;
esac esac
TRUST_LEVEL=$(cat $data) TRUST_LEVEL=$(cat $data)
if [ ${TRUST_LEVEL} -ge 1] ; then if [ ${TRUST_LEVEL} -ge 1 ] ; then
if [ ${TRUST_LEVEL} -le 5] ; then if [ ${TRUST_LEVEL} -le 5 ] ; then
echo -e "trust\n${TRUST_LEVEL}\ny\nsave\n" | gpg --command-fd 0 --edit-key $fpr echo -e "trust\n${TRUST_LEVEL}\ny\nsave\n" | gpg --command-fd 0 --edit-key $fpr
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
gpg --update-trustdb gpg --update-trustdb