Fix stray 'local' command
This commit is contained in:
parent
e026154a3a
commit
1694bd476e
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ then
|
||||||
export SSH_AUTH_SOCK="${SSH_AUTH_SOCK:-$XDG_RUNTIME_DIR/ssh-agent.socket}"
|
export SSH_AUTH_SOCK="${SSH_AUTH_SOCK:-$XDG_RUNTIME_DIR/ssh-agent.socket}"
|
||||||
export SSH_AGENT_PID="${SSH_AGENT_PID:-$XDG_RUNTIME_DIR/ssh-agent.pid}"
|
export SSH_AGENT_PID="${SSH_AGENT_PID:-$XDG_RUNTIME_DIR/ssh-agent.pid}"
|
||||||
ssh-add -l > /dev/null 2>&1
|
ssh-add -l > /dev/null 2>&1
|
||||||
local _acp_ssh_agent_exists=$?
|
_acp_ssh_agent_exists=$?
|
||||||
if [ -S "$SSH_AUTH_SOCK" ] && [ $_acp_ssh_agent_exists -eq 2 ]
|
if [ -S "$SSH_AUTH_SOCK" ] && [ $_acp_ssh_agent_exists -eq 2 ]
|
||||||
then
|
then
|
||||||
# Remove stale ssh-agent socket.
|
# Remove stale ssh-agent socket.
|
||||||
|
|
Loading…
Reference in a new issue