Merge pull request #14 from ijohanne/features/dont_spawn_remotely_if_forwarded

Do not treat ssh-agent as not running simply from `SSH_AGENT_PID`
This commit is contained in:
Daniel Perez 2020-10-29 13:15:43 +00:00 committed by GitHub
commit ea337987ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ function __ssh_agent_is_started -d "check if ssh agent is already started"
source $SSH_ENV > /dev/null source $SSH_ENV > /dev/null
end end
if test -z "$SSH_AGENT_PID" if begin; test -z "$SSH_AGENT_PID"; and test -z "$SSH_CONNECTION"; end
return 1 return 1
end end