Skip to content

Commit

Permalink
Merge pull request #15 from PiJaAB/feat/w13
Browse files Browse the repository at this point in the history
feat/add-new-line-to-string
  • Loading branch information
Gökhan Alkacir committed Sep 25, 2023
2 parents fc568a2 + 36dd1e4 commit f946ae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function run(): Promise<void> {

// sshKey.split(/(?=-----BEGIN)/).forEach(function (key) {
child_process.execFileSync('ssh-add', ['-'], {
input: sshKey
input: sshKey + '\n'
})
fs.writeFileSync(`${SSH_KEY_PATH}`, sshKey, {
mode: '600'
Expand Down

0 comments on commit f946ae2

Please sign in to comment.