Remove echo when a dead SSH Agent PID is found

This case can be safely ignored, no need to print a message for that.

Fixes #1579
pull/1584/head
Nils Winkler 2020-05-02 14:46:05 +02:00
parent 941cf71a77
commit ec384be4be
No known key found for this signature in database
GPG Key ID: 317C6E70C88A89B1
1 changed files with 1 additions and 2 deletions

View File

@ -94,7 +94,6 @@ function _ensure_valid_sshagent_env() {
return
fi
echo "There's a dead ssh-agent at the landing..."
ssh-agent > "${SSH_AGENT_ENV}"
return
}
@ -125,7 +124,7 @@ function sshagent() {
about 'ensures ssh-agent is up and running'
param '1: on|off '
example '$ sshagent on'
group 'ssh'
group 'ssh'
[[ -z "${SSH_AGENT_ENV}" ]] \
&& export SSH_AGENT_ENV="${HOME}/.ssh/agent_env.${HOSTNAME}"