mirror of
https://github.com/webfactory/ssh-agent.git
synced 2024-11-27 03:13:17 +00:00
Fix Windows file path to use backslashes
This commit is contained in:
parent
e35dbcbae9
commit
feedd601c5
2 changed files with 4 additions and 4 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -138,8 +138,8 @@ try {
|
|||
child_process.execSync('sc config ssh-agent start=demand', { stdio: 'inherit' });
|
||||
|
||||
// Work around https://github.com/PowerShell/openssh-portable/pull/447 by creating a \dev\tty file
|
||||
fs.mkdirSync('/dev');
|
||||
fs.closeSync(fs.openSync('dev/tty', 'a'));
|
||||
fs.mkdirSync('\\dev');
|
||||
fs.closeSync(fs.openSync('\\dev\\tty', 'a'));
|
||||
|
||||
home = os.homedir();
|
||||
} else {
|
||||
|
|
4
index.js
4
index.js
|
@ -21,8 +21,8 @@ try {
|
|||
child_process.execSync('sc config ssh-agent start=demand', { stdio: 'inherit' });
|
||||
|
||||
// Work around https://github.com/PowerShell/openssh-portable/pull/447 by creating a \dev\tty file
|
||||
fs.mkdirSync('/dev');
|
||||
fs.closeSync(fs.openSync('dev/tty', 'a'));
|
||||
fs.mkdirSync('\\dev');
|
||||
fs.closeSync(fs.openSync('\\dev\\tty', 'a'));
|
||||
|
||||
home = os.homedir();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue