Added flag so .bash_logout won't try to unregister a socket that didn't register.

This commit is contained in:
Darren 'Tadgy' Austin 2019-07-02 22:04:33 +01:00
commit dae5b0fdaa
3 changed files with 7 additions and 5 deletions

View file

@ -15,8 +15,10 @@ _agent_prompt_command() {
_lock_agents_file && {
if _push_agent_sock; then
echo "Connected to alternate ssh-agent - you may need to re-add keys."
_SSH_AGENT_REG_FAILED=0
else
echo "Connected to, but failed to register, alternate ssh-agent - you may need to re-add keys."
_SSH_AGENT_REG_FAILED=1
fi
}
_unlock_agents_file