Fix Windows file path to use backslashes

This commit is contained in:
Matthias Pigulla 2021-03-02 15:31:47 +00:00
parent e35dbcbae9
commit feedd601c5
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View file

@ -138,8 +138,8 @@ try {
child_process.execSync('sc config ssh-agent start=demand', { stdio: 'inherit' }); 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 // Work around https://github.com/PowerShell/openssh-portable/pull/447 by creating a \dev\tty file
fs.mkdirSync('/dev'); fs.mkdirSync('\\dev');
fs.closeSync(fs.openSync('dev/tty', 'a')); fs.closeSync(fs.openSync('\\dev\\tty', 'a'));
home = os.homedir(); home = os.homedir();
} else { } else {

View file

@ -21,8 +21,8 @@ try {
child_process.execSync('sc config ssh-agent start=demand', { stdio: 'inherit' }); 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 // Work around https://github.com/PowerShell/openssh-portable/pull/447 by creating a \dev\tty file
fs.mkdirSync('/dev'); fs.mkdirSync('\\dev');
fs.closeSync(fs.openSync('dev/tty', 'a')); fs.closeSync(fs.openSync('\\dev\\tty', 'a'));
home = os.homedir(); home = os.homedir();
} else { } else {