Updated comments.

This commit is contained in:
Darren 'Tadgy' Austin 2019-07-02 22:20:57 +01:00
commit 4e5fee870f
3 changed files with 2 additions and 5 deletions

View file

@ -24,6 +24,7 @@ _agent_prompt_command() {
_unlock_agents_file
_SSH_PROMPT_ERROR_ISSUED=0
else
# Failed to find a new socket.
if [[ -z "$(egrep -v '^$' ~/.ssh/agents)" ]]; then
((${_SSH_PROMPT_ERROR_ISSUED:-0} == 0)) && {
echo "$(tput setaf 1)Lost connection to ssh-agent - no alternate available!$(tput op)"