Grmbl.
This commit is contained in:
parent
712a60954f
commit
da0c7a4ed6
@ -246,10 +246,15 @@ function _ssh_agent_plugin_add_identities() {
|
||||
local _ssh_agent_plugin_identity
|
||||
|
||||
for _ssh_agent_plugin_identity in ${^_ssh_agent_plugin_identities}; do
|
||||
_ssh_agent_plugin_debug "Handling identity ${_ssh_agent_plugin_identity}."
|
||||
|
||||
local _ssh_agent_plugin_identity_path
|
||||
|
||||
_ssh_agent_plugin_identity_path="${_ssh_agent_plugin_directory}/${_ssh_agent_plugin_identity}"
|
||||
|
||||
if [ -r "${_ssh_agent_plugin_identity_path}" ]; then
|
||||
_ssh_agent_plugin_debug "Trying to add identity ${_ssh_agent_plugin_identity_path}"
|
||||
|
||||
ssh-add -l | awk '{print $3}' | grep -q "${_ssh_agent_plugin_identity_path}"
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user