Avoid using a separate shell

This commit is contained in:
Matthias Pigulla 2021-03-01 11:14:22 +00:00
parent f03f6e3358
commit 2bcaae34da
3 changed files with 3 additions and 9 deletions

3
dist/index.js vendored
View file

@ -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;