mirror of
https://github.com/webfactory/ssh-agent.git
synced 2024-11-22 01:00:50 +00:00
4b6f4eb000
* Use SSH binaries from the Git suite * Try to kill the ssh-agent upon action termination on Windows as well
18 lines
476 B
JavaScript
18 lines
476 B
JavaScript
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
|
|
home: os.userInfo().homedir,
|
|
sshAgent: 'ssh-agent',
|
|
sshAdd: 'ssh-add'
|
|
|
|
} : {
|
|
|
|
home: os.homedir(),
|
|
sshAgent: 'c://progra~1//git//usr//bin//ssh-agent.exe',
|
|
sshAdd: 'c://progra~1//git//usr//bin//ssh-add.exe'
|
|
|
|
};
|
|
|