gpg: check for S.gpg-agent to see if gpg-agent is running
from gpg changelog: > Removed the GPG_AGENT_INFO related code. GnuPG does now > always use a fixed socket name in its home directory.
This commit is contained in:
parent
9539341e1e
commit
60022786c3
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ _gpg_agent_conf="${GNUPGHOME:-$HOME/.gnupg}/gpg-agent.conf"
|
|||
_gpg_agent_env="${TMPDIR:-/tmp}/gpg-agent.env"
|
||||
|
||||
# Start gpg-agent if not started.
|
||||
if [[ -z "$GPG_AGENT_INFO" ]]; then
|
||||
if [[ -z "$GPG_AGENT_INFO" && ! -S "${GNUPGHOME:-$HOME/.gnupg}/S.gpg-agent" ]]; then
|
||||
# Export environment variables.
|
||||
source "$_gpg_agent_env" 2> /dev/null
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue