Improve variable names, again
This commit is contained in:
parent
2c1c285334
commit
3f34cd0ca9
5 changed files with 41 additions and 50 deletions
17
paths.js
17
paths.js
|
@ -1,19 +1,16 @@
|
|||
const os = require('os');
|
||||
|
||||
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