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'