1
1
Fork 0

setup.sh: Improve checking for gpg key

This commit is contained in:
Jonathan Schleifer 2021-10-28 18:05:06 +00:00
parent 7dcb416f6d
commit 1e0bf8641a

View file

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