Manually fix Windows sshd code example in all languages (#20598)
Fixes https://github.com/github/docs/issues/8516
This commit is contained in:
@@ -48,7 +48,7 @@ agent_start () {
|
||||
|
||||
agent_load_env
|
||||
|
||||
# agent_run_state: 0=agent running w/ key; 1=agent w/o key; 2= agent not running
|
||||
# agent_run_state: 0=agent running w/ key; 1=agent w/o key; 2=agent not running
|
||||
agent_run_state=$(ssh-add -l >| /dev/null 2>&1; echo $?)
|
||||
|
||||
if [ ! "$SSH_AUTH_SOCK" ] || [ $agent_run_state = 2 ]; then
|
||||
|
||||
Reference in New Issue
Block a user