Added flag so .bash_logout won't try to unregister a socket that didn't register.
This commit is contained in:
parent
8bce5d846c
commit
dae5b0fdaa
3 changed files with 7 additions and 5 deletions
2
.bashrc
2
.bashrc
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue