diff --git a/setup.sh b/setup.sh index deeac17..8a246f5 100755 --- a/setup.sh +++ b/setup.sh @@ -34,7 +34,7 @@ if have fossil; then fi gpg_key="7395312F" - if test $($gpg -a --export $gpg_key 2>/dev/null | wc -c) -gt 0; then + if $gpg --list-secret-keys $gpg_key &>/dev/null; then fossil set --global pgp-command \ "$gpg -u $gpg_key --clearsign -o" fossil set --global clearsign 1