Commit 4eecb0b6 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Ensure GPG agent is started when SSH configs are generated

parent fd395e2e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -67,6 +67,11 @@ make_config() {
			`rule_canonisation`
			`rule_runtime`
		"

	# Ensure the GPG agent is running if installed
	if has gpg-agent; then
		gpg-connect-agent /bye
	fi >&2
}


+0 −5
Original line number Diff line number Diff line
@@ -4,11 +4,6 @@ set -eu
. ~/.shell/lib/ssh.sh
. ~/.shell/funcs

# Ensure the GPG agent is running if installed
if has gpg-agent; then
	gpg-connect-agent /bye
fi >&2

case " $*" in
	*' -F'*) exec ${SSH_BIN} "$@" ;;
	*)