Fix agent_is_started.

This commit is contained in:
Daniel Perez 2016-05-18 12:01:09 +09:00
parent ceeb86bbcc
commit 7d621574ba
1 changed files with 1 additions and 1 deletions

View File

@ -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