configs  Check-in [c06ec26395]

Overview
Comment:setup.sh: Don't use &>
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c06ec26395c621081732721e0d8623a1e6ebb88442e9f8a3ae1d1a8a413231a8
User & Date: js on 2023-04-17 09:46:16
Other Links: manifest | tags
Context
2023-04-29
22:31
setup.sh: Set XDG_DATA_HOME and GNUPGHOME check-in: ca0dd11e2d user: js tags: trunk
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
Changes

Modified setup.sh from [90c56e006b] to [2cfb63ae77].

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
	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
	else
		fossil unset --global pgp-command
		fossil unset --global clearsign
	fi







|







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
	elif have gpg; then
		gpg="gpg"
	else
		gpg="false"
	fi

	gpg_key="7395312F"
	if $gpg --list-secret-keys $gpg_key >/dev/null 2>&1; then
		fossil set --global pgp-command \
			"$gpg -u $gpg_key --clearsign -o"
		fossil set --global clearsign 1
	else
		fossil unset --global pgp-command
		fossil unset --global clearsign
	fi