Skip to content

Commit

Permalink
fix: Code formatting in src/
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed May 7, 2024
1 parent 7aee2e2 commit 790a082
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/publish-crates-debian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function setup(): Input {
const sshPrivateKey = core.getInput("ssh-private-key", { required: true });
const sshPassphrase = core.getInput("ssh-passphrase", { required: true });
const installationTest = core.getBooleanInput("installation-test", { required: true });
const repo = core.getInput("repo", {required: true});
const repo = core.getInput("repo", { required: true });

return {
liveRun,
Expand Down
6 changes: 1 addition & 5 deletions src/ssh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ function setupAgent(): NodeJS.ProcessEnv {
return Object.fromEntries([...commands.matchAll(/([A-Z_]+)=([^;]+);/g)].map(m => [m[1], m[2]]));
}

export async function withIdentity(
privateKey: string,
passphrase: string,
fn: (env: NodeJS.ProcessEnv) => void,
) {
export async function withIdentity(privateKey: string, passphrase: string, fn: (env: NodeJS.ProcessEnv) => void) {
const env = setupAgent();
const passphrasePath = "./.ssh_askpass";
await fs.writeFile(passphrasePath, `echo '${passphrase}'`, { mode: fs.constants.S_IRWXU });
Expand Down

0 comments on commit 790a082

Please sign in to comment.