mirror of
https://github.com/webfactory/ssh-agent.git
synced 2026-03-20 01:59:07 +08:00
Fix Windows file path to use backslashes
This commit is contained in:
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 {
|
||||
|
||||
Reference in New Issue
Block a user