export GPG_TTY=`tty`
if [ -f "/srv/scratch/${USER}/.gpg-agent-info" ]; then
    gpg_agent_path="/srv/scratch/${USER}/.gpg-agent-info"
elif [ -f "${HOME}/.gpg-agent-info" ]; then
    gpg_agent_path="${HOME}/.gpg-agent-info"
fi
if [ ! -z ${gpg_agent_path+x} ]; then
echo "Running"
    . "${gpg_agent_path}"
    export GPG_AGENT_INFO
    export SSH_AGENT_PID
    export SSH_AUTH_SOCK
fi
