Improve variable names, again
This commit is contained in:
parent
2c1c285334
commit
3f34cd0ca9
5 changed files with 41 additions and 50 deletions
21
dist/cleanup.js
vendored
21
dist/cleanup.js
vendored
|
@ -599,12 +599,12 @@ exports.debug = debug; // for test
|
|||
|
||||
const core = __webpack_require__(470);
|
||||
const { execFileSync } = __webpack_require__(129);
|
||||
const { sshAgentPath } = __webpack_require__(972);
|
||||
const { sshAgentCmd } = __webpack_require__(972);
|
||||
|
||||
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');
|
||||
|
@ -2824,24 +2824,21 @@ exports.default = _default;
|
|||
const os = __webpack_require__(87);
|
||||
|
||||
module.exports = (process.env['OS'] != 'Windows_NT') ? {
|
||||
|
||||
// Use getent() system call, since this is what ssh does; makes a difference in Docker-based
|
||||
// Action runs, where $HOME is different from the pwent
|
||||
homePath: os.userInfo().homedir,
|
||||
sshAgentPath: 'ssh-agent',
|
||||
sshAddPath: 'ssh-add',
|
||||
gitPath: 'git'
|
||||
|
||||
sshAgentCmd: 'ssh-agent',
|
||||
sshAddCmd: 'ssh-add',
|
||||
gitCmd: 'git'
|
||||
} : {
|
||||
|
||||
// Assuming GitHub hosted `windows-*` runners for now
|
||||
homePath: os.homedir(),
|
||||
sshAgentPath: 'c://progra~1//git//usr//bin//ssh-agent.exe',
|
||||
sshAddPath: 'c://progra~1//git//usr//bin//ssh-add.exe',
|
||||
gitPath: 'c://progra~1//git//usr//bin//git.exe'
|
||||
sshAgentCmd: 'c://progra~1//git//usr//bin//ssh-agent.exe',
|
||||
sshAddCmd: 'c://progra~1//git//usr//bin//ssh-add.exe',
|
||||
gitCmd: 'c://progra~1//git//usr//bin//git.exe'
|
||||
};
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
Loading…
Add table
Add a link
Reference in a new issue