Derive home from $HOME instead of /etc/passwd

This commit is contained in:
Javed Mohamed 2023-08-28 15:29:29 -05:00
parent d4b9b8ff72
commit 152094029b
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'