()
| 374 | } |
| 375 | |
| 376 | function checkGitAvailable(): string { |
| 377 | try { |
| 378 | const { execFileSync } = require("node:child_process") as typeof import("node:child_process"); |
| 379 | return execFileSync("git", ["--version"], { encoding: "utf8" }).trim(); |
| 380 | } catch (error) { |
| 381 | const message = error instanceof Error ? error.message : String(error); |
| 382 | return `unavailable (${message})`; |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | function checkBashShell(): string { |
| 387 | try { |