mirror of
https://github.com/webfactory/ssh-agent.git
synced 2024-12-28 01:40:37 +00:00
More debugging
This commit is contained in:
parent
f78cad1cc7
commit
166067472e
2 changed files with 14 additions and 6 deletions
10
dist/index.js
vendored
10
dist/index.js
vendored
|
@ -191,10 +191,14 @@ try {
|
|||
}
|
||||
|
||||
// Load key into agent
|
||||
var sshAdd;
|
||||
let sshAdd = undefined;
|
||||
|
||||
sshAdd = child_process.execSync(`ssh-add ${keyFile}`, { env: { 'DISPLAY': 'fake', 'SSH_PASS': token, 'SSH_ASKPASS': process.cwd() + '/askpass.exe' }, stdio: 'inherit' });
|
||||
console.log(sshAdd.toString());
|
||||
try {
|
||||
sshAdd = child_process.execSync(`ssh-add ${keyFile}`, { env: { 'DISPLAY': 'fake', 'SSH_PASS': token, 'SSH_ASKPASS': process.cwd() + '/askpass.exe' }, stdio: 'inherit', input: '' });
|
||||
} catch (exception) {
|
||||
console.log(sshAdd, exception);
|
||||
throw exception;
|
||||
}
|
||||
|
||||
output.toString().split(/\r?\n/).forEach(function(key) {
|
||||
let parts = key.match(/^Key has comment '.*\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+?)(?=\.git|\s|\')/);
|
||||
|
|
10
index.js
10
index.js
|
@ -74,10 +74,14 @@ try {
|
|||
}
|
||||
|
||||
// Load key into agent
|
||||
var sshAdd;
|
||||
let sshAdd = undefined;
|
||||
|
||||
sshAdd = child_process.execSync(`ssh-add ${keyFile}`, { env: { 'DISPLAY': 'fake', 'SSH_PASS': token, 'SSH_ASKPASS': process.cwd() + '/askpass.exe' }, stdio: 'inherit' });
|
||||
console.log(sshAdd.toString());
|
||||
try {
|
||||
sshAdd = child_process.execSync(`ssh-add ${keyFile}`, { env: { 'DISPLAY': 'fake', 'SSH_PASS': token, 'SSH_ASKPASS': process.cwd() + '/askpass.exe' }, stdio: 'inherit', input: '' });
|
||||
} catch (exception) {
|
||||
console.log(sshAdd, exception);
|
||||
throw exception;
|
||||
}
|
||||
|
||||
output.toString().split(/\r?\n/).forEach(function(key) {
|
||||
let parts = key.match(/^Key has comment '.*\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+?)(?=\.git|\s|\')/);
|
||||
|
|
Loading…
Reference in a new issue