mirror of
https://github.com/danhper/fish-ssh-agent.git
synced 2026-11-17 12:45:41 +00:00
agent running if remote session and socket works
This commit is contained in:
1 parent
ce90d80aa9
commit
2cd9d08904
1 file changed
+1
-1
@@ -3,7 +3,7 @@ function __ssh_agent_is_started -d "check if ssh agent is already started"
|
||||
source $SSH_ENV > /dev/null
|
||||
end
|
||||
|
||||
if test -z "$SSH_AGENT_PID"
|
||||
if begin; test -z "$SSH_AGENT_PID"; and test -z "$SSH_CONNECTION"; end
|
||||
return 1
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user