configs  Check-in [fc53e54f5c]

Overview
Comment:setup.sh: Only set Fossil GPG key if GPG exists
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fc53e54f5c7a9ba761ab6c2c967f98d6decfdce223708e2638fcf2749ad3cd24
User & Date: js 2023-04-17 09:42:23
Context
2023-04-17
09:46
setup.sh: Don't use &> check-in: c06ec26395 user: js tags: trunk
09:42
setup.sh: Only set Fossil GPG key if GPG exists check-in: fc53e54f5c user: js tags: trunk
09:38
Add GPG keys check-in: 0494297aba user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to setup.sh.

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
	fossil set --global mv-rm-files 1

	if have gpg2; then
		gpg="gpg2"
	elif have gpg; then
		gpg="gpg"
	else
		gpg=":"
	fi

	gpg_key="7395312F"
	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







|







25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
	fossil set --global mv-rm-files 1

	if have gpg2; then
		gpg="gpg2"
	elif have gpg; then
		gpg="gpg"
	else
		gpg="false"
	fi

	gpg_key="7395312F"
	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