Improve variable names, again

This commit is contained in:
Matthias Pigulla 2022-10-19 11:24:29 +00:00
parent 2c1c285334
commit 3f34cd0ca9
No known key found for this signature in database
GPG key ID: 07625DB0815D6CA1
5 changed files with 41 additions and 50 deletions

View file

@ -1,11 +1,11 @@
const core = require('@actions/core');
const { execFileSync } = require('child_process');
const { sshAgentPath } = require('./paths.js');
const { sshAgentCmd } = require('./paths.js');
try {
// Kill the started SSH agent
console.log('Stopping SSH agent');
execFileSync(sshAgentPath, ['-k'], { stdio: 'inherit' });
execFileSync(sshAgentCmd, ['-k'], { stdio: 'inherit' });
} catch (error) {
console.log(error.message);
console.log('Error stopping the SSH agent, proceeding anyway');