mirror of
https://github.com/webfactory/ssh-agent.git
synced 2024-11-23 17:48:00 +00:00
Use execSync instead of execFileSync
This commit is contained in:
parent
637f9c791e
commit
ccd95b931d
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -193,7 +193,7 @@ try {
|
||||||
// Load key into agent
|
// Load key into agent
|
||||||
var sshAdd;
|
var sshAdd;
|
||||||
|
|
||||||
child_process.execFileSync('ssh-add', [keyFile], { env: { 'DISPLAY': 'fake', 'SSH_PASS': token, 'SSH_ASKPASS': process.cwd() + '/askpass.exe' }, stdio: 'inherit' });
|
child_process.execSync('ssh-add', [keyFile], { env: { 'DISPLAY': 'fake', 'SSH_PASS': token, 'SSH_ASKPASS': process.cwd() + '/askpass.exe' }, stdio: 'inherit' });
|
||||||
|
|
||||||
output.toString().split(/\r?\n/).forEach(function(key) {
|
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|\')/);
|
let parts = key.match(/^Key has comment '.*\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+?)(?=\.git|\s|\')/);
|
||||||
|
|
2
index.js
2
index.js
|
@ -76,7 +76,7 @@ try {
|
||||||
// Load key into agent
|
// Load key into agent
|
||||||
var sshAdd;
|
var sshAdd;
|
||||||
|
|
||||||
child_process.execFileSync('ssh-add', [keyFile], { env: { 'DISPLAY': 'fake', 'SSH_PASS': token, 'SSH_ASKPASS': process.cwd() + '/askpass.exe' }, stdio: 'inherit' });
|
child_process.execSync('ssh-add', [keyFile], { env: { 'DISPLAY': 'fake', 'SSH_PASS': token, 'SSH_ASKPASS': process.cwd() + '/askpass.exe' }, stdio: 'inherit' });
|
||||||
|
|
||||||
output.toString().split(/\r?\n/).forEach(function(key) {
|
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|\')/);
|
let parts = key.match(/^Key has comment '.*\bgithub\.com[:/]([_.a-z0-9-]+\/[_.a-z0-9-]+?)(?=\.git|\s|\')/);
|
||||||
|
|
Loading…
Reference in a new issue