[NAMING] Add *Path suffix where applicable

Signed-off-by: Oktawian Chojnacki <oktawian@me.com>
This commit is contained in:
Oktawian Chojnacki 2022-10-19 12:13:54 +02:00
parent 0a5d1715cf
commit 4b29c05a2e
No known key found for this signature in database
GPG key ID: 19848A5660FCC34A
3 changed files with 14 additions and 14 deletions

View file

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