Export GPG_AGENT_INFO in gpg-agent-spawn.sh.
authorW. Trevor King <wking@drexel.edu>
Wed, 7 Dec 2011 18:58:28 +0000 (13:58 -0500)
committerW. Trevor King <wking@drexel.edu>
Wed, 7 Dec 2011 18:58:28 +0000 (13:58 -0500)
posts/gpg-agent/gpg-agent-spawn.sh

index 432e69f968ec666c6960de757826d585218fb994..acaddbab8a7126eb809c47c66fc84a59218c8df0 100755 (executable)
@@ -5,5 +5,5 @@ FILE="${HOME}/.gnupg/agent-info"
 GPG_TTY=$(tty)
 #gpg-agent --daemon --enable-ssh-support --write-env-file "${FILE}" --pinentry-program "${HOME}/bin/pinentry"
 gpg-agent --daemon --write-env-file "${FILE}" --pinentry-program "${HOME}/bin/pinentry"
-echo "GPG_TTY='${GPG_TTY}'; export GPG_TTY" >> "${FILE}"
+echo "export GPG_AGENT_INFO; GPG_TTY='${GPG_TTY}'; export GPG_TTY" >> "${FILE}"
 source "${FILE}"