Use ssh-add -q

This commit is contained in:
Sam A. 2023-03-21 18:50:37 +01:00
parent 28980dfd63
commit 5cf5cb936a
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -1,6 +1,4 @@
if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then
{
eval "$(ssh-agent)"
ssh-add ~/.ssh/id_^*.pub
} &> /dev/null
eval "$(ssh-agent)" &> /dev/null
ssh-add -q ~/.ssh/id_^*.pub
fi