mirror of
https://github.com/danhper/fish-ssh-agent.git
synced 2025-09-28 06:35:27 +00:00
Fix agent_is_started.
This commit is contained in:
@@ -7,6 +7,6 @@ function __ssh_agent_is_started -d "check if ssh agent is already started"
|
||||
return 1
|
||||
end
|
||||
|
||||
ps -ef | grep $SSH_AGENT_PID | grep -v grep | grep ssh-agent > /dev/null
|
||||
ps -ef | grep $SSH_AGENT_PID | grep -v grep | grep -q ssh-agent
|
||||
return $status
|
||||
end
|
||||
|
Reference in New Issue
Block a user