diff --git a/src/freedombone-controlpanel-user b/src/freedombone-controlpanel-user index d85cb7a3..763715b5 100755 --- a/src/freedombone-controlpanel-user +++ b/src/freedombone-controlpanel-user @@ -760,8 +760,8 @@ function gpg_key_trust { 255) return;; esac TRUST_LEVEL=$(cat $data) - if [ ${TRUST_LEVEL} -ge 1] ; then - if [ ${TRUST_LEVEL} -le 5] ; then + if [ ${TRUST_LEVEL} -ge 1 ] ; then + if [ ${TRUST_LEVEL} -le 5 ] ; then echo -e "trust\n${TRUST_LEVEL}\ny\nsave\n" | gpg --command-fd 0 --edit-key $fpr if [ "$?" = "0" ]; then gpg --update-trustdb