Use $GNUPGHOME if it exists

This commit is contained in:
nfnty 2014-11-22 04:37:11 +01:00 committed by Sorin Ionescu
parent 2a33581e80
commit 13d1ed160e
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ if (( ! $+commands[gpg-agent] )); then
fi
# Set the default paths to gpg-agent files.
_gpg_agent_conf="$HOME/.gnupg/gpg-agent.conf"
_gpg_agent_conf="${GNUPGHOME:-$HOME/.gnupg}/gpg-agent.conf"
_gpg_agent_env="${TMPDIR:-/tmp}/gpg-agent.env"
# Start gpg-agent if not started.