(body: string)
| 69 | let homeDir: string; |
| 70 | |
| 71 | function writeShim(body: string): void { |
| 72 | const p = path.join(binDir, "gbrain"); |
| 73 | fs.writeFileSync(p, body, { mode: 0o755 }); |
| 74 | fs.chmodSync(p, 0o755); |
| 75 | } |
| 76 | function env(): NodeJS.ProcessEnv { |
| 77 | // Keep the real PATH so /usr/bin/env + bash resolve; prepend the shim dir. |
| 78 | return { PATH: `${binDir}:${process.env.PATH}`, HOME: homeDir }; |
no outgoing calls
no test coverage detected