From feedd601c5f1504ba69d0fe215fc54ee61eb1d5b Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Tue, 2 Mar 2021 15:31:47 +0000 Subject: [PATCH] Fix Windows file path to use backslashes --- dist/index.js | 4 ++-- index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 {