2019-01-20 16:16:17 +00:00
|
|
|
#--------------------------------------------------------------------------------
|
|
|
|
# Run an SSH agent, if possible
|
|
|
|
#--------------------------------------------------------------------------------
|
|
|
|
# Check if we already have an agent running and sourced
|
|
|
|
if [ -z "${SSH_AUTH_SOCK}" ]; then
|
2019-10-27 10:31:18 +00:00
|
|
|
eval $(ssh-agent)
|
|
|
|
ssh-add
|
2019-01-20 16:16:17 +00:00
|
|
|
fi
|
|
|
|
#--------------------------------------------------------------------------------
|