We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3eaac8 commit 1b4f5ebCopy full SHA for 1b4f5eb
src/ssh/sshConfig.ts
@@ -29,12 +29,12 @@ export default class SSHConfiguration {
29
const sshConfigPath = getSSHConfigPath();
30
let content = '';
31
if (await fileExists(sshConfigPath)) {
32
- content = await fs.promises.readFile(sshConfigPath, 'utf8');
+ content = (await fs.promises.readFile(sshConfigPath, 'utf8')).trim();
33
}
34
const config = SSHConfig.parse(content);
35
36
if (await fileExists(systemSSHConfig)) {
37
- content = await fs.promises.readFile(systemSSHConfig, 'utf8');
+ content = (await fs.promises.readFile(systemSSHConfig, 'utf8')).trim();
38
config.push(...SSHConfig.parse(content));
39
40
0 commit comments