diff --git a/dist/index.js b/dist/index.js index 9eef630..27bbdda 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 { diff --git a/index.js b/index.js index 1efbe0d..53a6b4b 100644 --- a/index.js +++ b/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 {