The check for util.sh counts the number of global ssh-agent PID (this includes other users) instead of checking to see if ssh-agent environmental variables are properly set. This means that other users running ssh-agent or even if the same user has a running ssh-agent instance but no authentication to the ssh-agent socket will not trigger an error in the util.sh code.
The check for
util.shcounts the number of globalssh-agentPID (this includes other users) instead of checking to see ifssh-agentenvironmental variables are properly set. This means that other users runningssh-agentor even if the same user has a runningssh-agentinstance but no authentication to thessh-agentsocket will not trigger an error in theutil.shcode.