fix: incorrect sshagent command variable name
This commit is contained in:
parent
fd34b8dee2
commit
397be80bce
4 changed files with 47 additions and 77 deletions
|
@ -1,11 +1,11 @@
|
|||
const core = require('@actions/core');
|
||||
const { execFileSync } = require('child_process');
|
||||
const { sshAgentCmd } = require('./paths.js');
|
||||
const { sshAgentCmdDefault } = require('./paths.js');
|
||||
|
||||
try {
|
||||
// Kill the started SSH agent
|
||||
console.log('Stopping SSH agent');
|
||||
execFileSync(sshAgentCmd, ['-k'], { stdio: 'inherit' });
|
||||
execFileSync(sshAgentCmdDefault, ['-k'], { stdio: 'inherit' });
|
||||
} catch (error) {
|
||||
console.log(error.message);
|
||||
console.log('Error stopping the SSH agent, proceeding anyway');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue