paths.js 476 B

12345678910111213141516171819
  1. const os = require('os');
  2. module.exports = (process.env['OS'] != 'Windows_NT') ? {
  3. // Use getent() system call, since this is what ssh does; makes a difference in Docker-based
  4. // Action runs, where $HOME is different from the pwent
  5. home: os.userInfo().homedir,
  6. sshAgent: 'ssh-agent',
  7. sshAdd: 'ssh-add'
  8. } : {
  9. home: os.homedir(),
  10. sshAgent: 'c://progra~1//git//usr//bin//ssh-agent.exe',
  11. sshAdd: 'c://progra~1//git//usr//bin//ssh-add.exe'
  12. };