(ctx, publicKeyPem)
| 55 | } |
| 56 | |
| 57 | function publicKeyMatchesCtx (ctx, publicKeyPem) { |
| 58 | return Buffer.compare( |
| 59 | parseKey(publicKeyPem).getPublicSSH(), |
| 60 | ctx.key.data |
| 61 | ) === 0 |
| 62 | } |
| 63 | |
| 64 | function runCommand (command, args, options = {}) { |
| 65 | const result = spawnSync(command, args, { encoding: 'utf8', ...options }) |
no test coverage detected