zsh: minor ssh-agent fix
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
5a9f0b08c0
commit
b2436b9e21
@ -43,6 +43,10 @@ z-ssh-agent() {
|
||||
done
|
||||
unset SSH_AGENT_PID
|
||||
|
||||
if [ -S "${SSH_AUTH_SOCK}" ] ; then
|
||||
rm -fv "${SSH_AUTH_SOCK}"
|
||||
fi
|
||||
|
||||
{
|
||||
eval "$(ssh-agent -s -a "${SSH_AUTH_SOCK}")"
|
||||
} >/dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user