mirror of
https://github.com/webfactory/ssh-agent.git
synced 2025-06-28 05:33:45 +00:00
Derive home from $HOME instead of /etc/passwd
This commit is contained in:
parent
d4b9b8ff72
commit
152094029b
3 changed files with 45 additions and 75 deletions
2
paths.js
2
paths.js
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue