fix: use os.homedir()

This commit is contained in:
Meghea Iulian 2023-11-30 10:25:03 +02:00
parent fd34b8dee2
commit a30790e76b
No known key found for this signature in database
GPG key ID: 9FA665644E968CF6
3 changed files with 45 additions and 75 deletions

View file

@ -3,7 +3,7 @@ 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,
homePath: os.homedir(),
sshAgentCmdDefault: 'ssh-agent',
sshAddCmdDefault: 'ssh-add',
gitCmdDefault: 'git'