change method to load ssh-agent from file
This commit is contained in:
parent
7d63b2bb0d
commit
c4028cb44a
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue