Merge branch 'fix/ssh-agent-process-check'
This commit is contained in:
commit
2c9d8310e4
@ -30,7 +30,7 @@ if [[ $_agent_forwarding == "yes" && -n "$SSH_AUTH_SOCK" ]]; then
|
|||||||
elif [[ -f "$_ssh_env_cache" ]]; then
|
elif [[ -f "$_ssh_env_cache" ]]; then
|
||||||
# Source SSH settings, if applicable
|
# Source SSH settings, if applicable
|
||||||
. $_ssh_env_cache > /dev/null
|
. $_ssh_env_cache > /dev/null
|
||||||
ps -o cmd -p $SSH_AGENT_PID | grep -q ssh-agent || {
|
pgrep ssh-agent | grep -q $SSH_AGENT_PID || {
|
||||||
_start_agent
|
_start_agent
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user