gpg-agent plugin service check changed

- running on OsX 10.8
    - When using gpg-agent plugin, found numerous instances of gpg-agent
      running on my system, growing linearly with time.  Found existing
      check for running services is calling a deprecated command.
This commit is contained in:
Chris DiMartino 2013-08-26 22:57:33 -04:00
commit 86059f3029

View file

@ -15,7 +15,7 @@ function start_agent_withssh {
}
# check if another agent is running
if ! gpg-connect-agent --quiet /bye > /dev/null 2> /dev/null; then
if ! gpg-agent -q > /dev/null 2> /dev/null; then
# source settings of old agent, if applicable
if [ -f "${GPG_ENV}" ]; then
. ${GPG_ENV} > /dev/null