diff options
Diffstat (limited to 'gpg-agent.sh')
-rwxr-xr-x | gpg-agent.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gpg-agent.sh b/gpg-agent.sh index ac6d385..067d73f 100755 --- a/gpg-agent.sh +++ b/gpg-agent.sh @@ -1,11 +1,10 @@ #!/bin/bash #---------------------------------------------------- -# Version: 0.2.1 # Author: Florian "Bluewind" Pritz <flo@xssn.at> # # Licensed under WTFPL v2 # (see COPYING for full license text) -# +# #---------------------------------------------------- # make working with the agent easier and prevent # starting multiple agents @@ -16,9 +15,10 @@ initgpg(){ [ -f "$XDG_CONFIG_HOME/disable-gpg-agent" ] && return 0 envfile="${XDG_DATA_HOME}/.gpginfo" if test -f ${envfile} && test -S $(cut -d= -f 2 ${envfile} | head -n 2 | tail -n 1) 2>/dev/null; then - eval $(< ${envfile}) + . ${envfile} else - eval `/usr/bin/gpg-agent --daemon --enable-ssh-support --write-env-file ${envfile}` + /usr/bin/gpg-agent --daemon --enable-ssh-support --write-env-file ${envfile} + . ${envfile} fi export GPG_AGENT_INFO export SSH_AUTH_SOCK |