mirror of
https://github.com/webfactory/ssh-agent.git
synced 2026-03-23 19:49:06 +08:00
Avoid using a separate shell
This commit is contained in:
3
dist/index.js
vendored
3
dist/index.js
vendored
@@ -166,12 +166,9 @@ try {
|
||||
const matches = /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(lines[lineNumber])
|
||||
if (matches && matches.length > 0) {
|
||||
core.exportVariable(matches[1], matches[2])
|
||||
process.env[matches[1]] = matches[2]; // use variables for ssh-add below
|
||||
}
|
||||
}
|
||||
|
||||
console.log(process.env);
|
||||
|
||||
console.log("Adding private keys to agent");
|
||||
var keyNumber = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user