Skip to content

Commit

Permalink
Fix args replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
tlbdk committed Nov 21, 2019
1 parent 396613e commit acd0b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func runWithSSHAgent(command string, args []string, sshKeyPath string, sshKeyPas
for i, arg := range args {
fmt.Fprintf(os.Stderr, "arg[%d]: %s\n", i, arg)
args[i] = strings.ReplaceAll(arg, "$SSH_AUTH_SOCK", sshAuthSock)
args[i] = strings.ReplaceAll(arg, "$$SSH_AUTH_SOCK", sshAuthSock)
args[i] = strings.ReplaceAll(args[i], "$$SSH_AUTH_SOCK", sshAuthSock)
}

}
Expand Down

0 comments on commit acd0b9a

Please sign in to comment.