Skip to content

Commit

Permalink
use path.join for better Windows compat
Browse files Browse the repository at this point in the history
  • Loading branch information
cardoe committed Mar 7, 2023
1 parent cbe834e commit 98f95a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ssh.ts
Expand Up @@ -194,7 +194,7 @@ export function genSshConfig(basePath: string, keys: DeployKey[]) {
config.append({
Host: key.mapped_host,
HostName: key.host,
IdentityFile: `${basePath}/${key.filename}`,
IdentityFile: path.join(basePath, key.filename),
IdentitiesOnly: 'yes',
});
}
Expand All @@ -215,7 +215,7 @@ async function writeSshConfig(
keys: DeployKey[],
): Promise<string> {
const localSshConfig = genSshConfig(basePath, keys);
const sshConfigPath = `${basePath}/config`;
const sshConfigPath = path.join(basePath, 'config');
let sshConfigFile = null;
try {
sshConfigFile = await fs.promises.open(sshConfigPath, 'a', 0o600);
Expand Down

0 comments on commit 98f95a6

Please sign in to comment.