From 36dd1e417d910f1a049da8693e105062bb9654ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6khan=20Alkacir?= Date: Mon, 25 Sep 2023 13:18:32 +0200 Subject: [PATCH] feat/add-new-line-to-string --- dist/index.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 306bc13..92fb69d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4039,7 +4039,7 @@ async function run() { fs_1.default.appendFileSync(SSH_CONFIG_PATH, SSH_CONFIG); // sshKey.split(/(?=-----BEGIN)/).forEach(function (key) { child_process_1.default.execFileSync('ssh-add', ['-'], { - input: sshKey + input: sshKey + '\n' }); fs_1.default.writeFileSync(`${SSH_KEY_PATH}`, sshKey, { mode: '600' diff --git a/src/main.ts b/src/main.ts index 4a3cebf..d80a0a1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -67,7 +67,7 @@ export async function run(): Promise { // sshKey.split(/(?=-----BEGIN)/).forEach(function (key) { child_process.execFileSync('ssh-add', ['-'], { - input: sshKey + input: sshKey + '\n' }) fs.writeFileSync(`${SSH_KEY_PATH}`, sshKey, { mode: '600'