change method to load ssh-agent from file

This commit is contained in:
Jakobus Schürz 2020-09-24 10:34:35 +02:00
parent 7d63b2bb0d
commit c4028cb44a

View file

@ -868,8 +868,8 @@ loadagent() {
local af
af=$(ssh-agent-start-or-restart --create-only $1 )
loginfo "Load agent from $af"
# eval $(<$af)
. $af >/dev/null
eval $(<$af)
# . $af
loginfo "SSH_AUTH_SOCK: $SSH_AUTH_SOCK"
loginfo "SSH_AGENT_PID: $SSH_AGENT_PID"