ssh-agent: only ask for password if not already loaded
commita30ae7418c608001ac3bb1f0579e004df190cd6f
authorChristian Sauer <sauerc@gmail.com>
Sat, 28 Feb 2015 17:50:49 +0000 (28 12:50 -0500)
committerChristian Sauer <sauerc@gmail.com>
Mon, 2 Mar 2015 21:29:25 +0000 (2 16:29 -0500)
tree723c86c0752b1d2bb44b73586643c87bced2b273
parent743431adea265410bffc786f511dfcb9f0e0673a
ssh-agent: only ask for password if not already loaded

Running ssh-add.exe with no params will always return an error level to make the script ask for the key's password again.  If ssh-add.exe is run with "-l" then it will set error level properly about loaded keys and only re-add key when necessary.

Signed-off-by: Christian Sauer <sauerc@gmail.com>
cmd/start-ssh-agent.cmd