mirror of
https://github.com/webfactory/ssh-agent.git
synced 2024-12-28 01:40:37 +00:00
Fix syntax
This commit is contained in:
parent
7fc4d80a06
commit
ef63fdb1df
2 changed files with 6 additions and 2 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -195,8 +195,10 @@ try {
|
|||
// Load key into agent
|
||||
console.log('Load key');
|
||||
//let sshAdd = child_process.execSync(`echo "${token}" | ssh-add "${keyFile}"`, { stdio: 'inherit' });
|
||||
var sshAdd;
|
||||
|
||||
try {
|
||||
let sshAdd = child_process.execSync(`ssh-add ${keyFile}`, { stdio: 'inherit', env: { 'SSH_ASKPASS': `${homeSsh}/askpass` } });
|
||||
let sshAdd = child_process.execSync(`ssh-add ${keyFile}`, { stdio: 'inherit', env: { 'SSH_ASKPASS': `${homeSsh}/askpass` } });
|
||||
} catch (exception) {
|
||||
console.log(sshAdd);
|
||||
console.log(exception);
|
||||
|
|
4
index.js
4
index.js
|
@ -78,8 +78,10 @@ try {
|
|||
// Load key into agent
|
||||
console.log('Load key');
|
||||
//let sshAdd = child_process.execSync(`echo "${token}" | ssh-add "${keyFile}"`, { stdio: 'inherit' });
|
||||
var sshAdd;
|
||||
|
||||
try {
|
||||
let sshAdd = child_process.execSync(`ssh-add ${keyFile}`, { stdio: 'inherit', env: { 'SSH_ASKPASS': `${homeSsh}/askpass` } });
|
||||
let sshAdd = child_process.execSync(`ssh-add ${keyFile}`, { stdio: 'inherit', env: { 'SSH_ASKPASS': `${homeSsh}/askpass` } });
|
||||
} catch (exception) {
|
||||
console.log(sshAdd);
|
||||
console.log(exception);
|
||||
|
|
Loading…
Reference in a new issue