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
|
@ -51,7 +51,7 @@ hash ssh-add ssh-agent >/dev/null 2>&1 && {
|
|||
echo "Connected to ssh-agent."
|
||||
else
|
||||
echo -e "$(tput setaf 3)Connected to ssh-agent, but failed to register socket.$(tput op)"
|
||||
# FIXME: Set marker here that we failed.
|
||||
_SSH_AGENT_REG_FAILED=1
|
||||
fi
|
||||
}
|
||||
_unlock_agents_file
|
||||
|
@ -67,7 +67,7 @@ hash ssh-add ssh-agent >/dev/null 2>&1 && {
|
|||
echo "Connected to alternate ssh-agent - you may need to re-add keys."
|
||||
else
|
||||
echo "$(tput setaf 3)Connected to, but failed to register, alternate ssh-agent - you may need to re-add keys.$(tput op)"
|
||||
# FIXME: Set marker here that we failed.
|
||||
_SSH_AGENT_REG_FAILED=1
|
||||
fi
|
||||
}
|
||||
_unlock_agents_file
|
||||
|
@ -87,7 +87,7 @@ hash ssh-add ssh-agent >/dev/null 2>&1 && {
|
|||
echo "Connected to ssh-agent."
|
||||
else
|
||||
echo "$(tput setaf 3)Connected to, but failed to register, ssh-agent.$(tput op)"
|
||||
# FIXME: Set marker here that we failed.
|
||||
_SSH_AGENT_REG_FAILED=1
|
||||
fi
|
||||
}
|
||||
_unlock_agents_file
|
||||
|
@ -103,7 +103,7 @@ hash ssh-add ssh-agent >/dev/null 2>&1 && {
|
|||
echo "Started new ssh-agent."
|
||||
else
|
||||
echo "$(tput setaf 3)Started, but failed to register, new ssh-agent$(tput op)"
|
||||
# FIXME: Set marker here that we failed.
|
||||
_SSH_AGENT_REG_FAILED=1
|
||||
fi
|
||||
}
|
||||
_unlock_agents_file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue