Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kimxogus committed May 28, 2024
1 parent 9e81c72 commit 688f4f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ const backport = async ({

info(`Backporting ${mergeCommitSha} from #${number}.`);

await exec("mkdir", ["-p", "~/.ssh"])
await exec("echo", [sshKey, ">", "~/.ssh/id_rsa"])
await exec("chmod", ["600", "~/.ssh/id_rsa"])
await exec("ssh-keyscan", ["github.com", ">>", "~/.ssh/known_hosts"])
await exec("mkdir", ["-p", "~/.ssh"]);
await exec("echo", [sshKey, ">", "~/.ssh/id_rsa"]);
await exec("chmod", ["600", "~/.ssh/id_rsa"]);
await exec("ssh-keyscan", ["github.com", ">>", "~/.ssh/known_hosts"]);

await exec("git", ["clone", `[email protected]:${owner}/${repo}.git`]);
await exec("git", [
Expand Down

0 comments on commit 688f4f2

Please sign in to comment.