Fix stray 'local' command

This commit is contained in:
Anthony Rose 2022-09-22 21:59:19 +01:00
parent e026154a3a
commit 1694bd476e

View file

@ -241,7 +241,7 @@ then
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}"
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 ]
then
# Remove stale ssh-agent socket.