Skip to content

Commit

Permalink
Merge pull request #322 from VeselaHouba/main
Browse files Browse the repository at this point in the history
Fix newlines for ssh keys from keystore
  • Loading branch information
ltamaster authored Sep 28, 2023
2 parents 4e72f43 + 00f9d80 commit f636c70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ public int run() throws Exception {
perms.add(PosixFilePermission.OWNER_WRITE);
Files.setPosixFilePermissions(tempPkFile.toPath(), perms);

Files.write(tempPkFile.toPath(), sshPrivateKey.getBytes());
Files.write(tempPkFile.toPath(), sshPrivateKey.replaceAll("\r\n","\n").getBytes());
procArgs.add("--private-key" + "=" + tempPkFile.toPath());

if(sshUseAgent){
Expand Down

0 comments on commit f636c70

Please sign in to comment.